edu.udo.cs.yale.operator.learner
Class MultiCriterionDecisionStumps.DecisionStumpModel
java.lang.Object
edu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.AbstractModel
edu.udo.cs.yale.operator.IOModel
edu.udo.cs.yale.operator.learner.PredictionModel
edu.udo.cs.yale.operator.learner.SimplePredictionModel
edu.udo.cs.yale.operator.learner.MultiCriterionDecisionStumps.DecisionStumpModel
- All Implemented Interfaces:
- IOObject, Model, ResultObject, Saveable
- Enclosing class:
- MultiCriterionDecisionStumps
public class MultiCriterionDecisionStumps.DecisionStumpModel
- extends SimplePredictionModel
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
testAttribute
private final Attribute testAttribute
testValue
private final double testValue
prediction
private final boolean prediction
includeNaNs
private boolean includeNaNs
numerical
private final boolean numerical
MultiCriterionDecisionStumps.DecisionStumpModel
public MultiCriterionDecisionStumps.DecisionStumpModel(Attribute attribute,
double testValue,
Attribute label,
boolean prediction,
boolean includeNaNs)
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