edu.udo.cs.yale.operator.learner
Class MultiCriterionDecisionStumps.DecisionStumpModel

java.lang.Object
  extended by edu.udo.cs.yale.operator.AbstractIOObject
      extended by edu.udo.cs.yale.operator.ResultObjectAdapter
          extended by edu.udo.cs.yale.operator.AbstractModel
              extended by edu.udo.cs.yale.operator.IOModel
                  extended by edu.udo.cs.yale.operator.learner.PredictionModel
                      extended by edu.udo.cs.yale.operator.learner.SimplePredictionModel
                          extended by edu.udo.cs.yale.operator.learner.MultiCriterionDecisionStumps.DecisionStumpModel
All Implemented Interfaces:
IOObject, Model, ResultObject, Saveable
Enclosing class:
MultiCriterionDecisionStumps

public class MultiCriterionDecisionStumps.DecisionStumpModel
extends SimplePredictionModel


Field Summary
private  boolean includeNaNs
           
private  boolean numerical
           
private  boolean prediction
           
private  Attribute testAttribute
           
private  double testValue
           
 
Constructor Summary
MultiCriterionDecisionStumps.DecisionStumpModel(Attribute attribute, double testValue, Attribute label, boolean prediction, boolean includeNaNs)
           
 
Method Summary
 double predict(Example example)
          Applies the model to a single example and returns the predicted class value.
 void readPredictionModelData(java.io.ObjectInputStream in)
          not supported yet
 java.lang.String toString()
           
 void writePredictionModelData(java.io.ObjectOutputStream out)
          not supported yet
 
Methods inherited from class edu.udo.cs.yale.operator.learner.SimplePredictionModel
performPrediction
 
Methods inherited from class edu.udo.cs.yale.operator.learner.PredictionModel
apply, createPredictedLabel, getLabel, readData, removePredictedLabel, setLabel, writeData
 
Methods inherited from class edu.udo.cs.yale.operator.AbstractModel
equals, getExtension, getFileDescription, readModel, readModel, save, setParameter, writeModel, writeModel
 
Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter
addAction, getActions, getName, getVisualisationComponent, toHTML, toResultString
 
Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject
copy, read, read, read, write, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.udo.cs.yale.operator.ResultObject
getActions, getName, getVisualisationComponent, toResultString
 
Methods inherited from interface edu.udo.cs.yale.operator.IOObject
copy, write, write
 

Field Detail

testAttribute

private final Attribute testAttribute

testValue

private final double testValue

prediction

private final boolean prediction

includeNaNs

private boolean includeNaNs

numerical

private final boolean numerical
Constructor Detail

MultiCriterionDecisionStumps.DecisionStumpModel

public MultiCriterionDecisionStumps.DecisionStumpModel(Attribute attribute,
                                                       double testValue,
                                                       Attribute label,
                                                       boolean prediction,
                                                       boolean includeNaNs)
Method Detail

predict

public double predict(Example example)
Description copied from class: SimplePredictionModel
Applies the model to a single example and returns the predicted class value.

Specified by:
predict in class SimplePredictionModel


toString

public java.lang.String toString()
Overrides:
toString in class PredictionModel
Returns:
a String representation of this rule model.

readPredictionModelData

public void readPredictionModelData(java.io.ObjectInputStream in)
                             throws java.io.IOException
not supported yet

Specified by:
readPredictionModelData in class PredictionModel
Throws:
java.io.IOException


writePredictionModelData

public void writePredictionModelData(java.io.ObjectOutputStream out)
                              throws java.io.IOException
not supported yet

Specified by:
writePredictionModelData in class PredictionModel
Throws:
java.io.IOException



Copyright © 2001-2006