edu.udo.cs.yale.operator.learner
Class SimpleBinaryPredictionModel
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.SimpleBinaryPredictionModel
- All Implemented Interfaces:
- IOObject, Model, ResultObject, Saveable
public abstract class SimpleBinaryPredictionModel
- extends PredictionModel
A model that can be applied to an example set by applying it to each example
separately. In contrast to the usual SimplePredictionModel,
this model should only be used for binary classification problems. The method predict(Example)
must deliver a function value. A value greater than 0 will be mapped to the positive class, a value
smaller than 0 to the negative class index. The confidence values will be calculated by the fast
and simple scaling suggested by Rueping.
- Version:
- $Id: SimpleBinaryPredictionModel.java,v 1.1 2006/10/02 23:33:08 ingomierswa Exp $
- Author:
- Ingo Mierswa
|
Method Summary |
void |
performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
Iterates over all examples and applies the model to them. |
abstract double |
predict(Example example)
Applies the model to a single example and returns the predicted class
value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleBinaryPredictionModel
protected SimpleBinaryPredictionModel()
SimpleBinaryPredictionModel
protected SimpleBinaryPredictionModel(Attribute label)
predict
public abstract double predict(Example example)
throws OperatorException
- Applies the model to a single example and returns the predicted class
value.
- Throws:
OperatorException
performPrediction
public void performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
throws OperatorException
- Iterates over all examples and applies the model to them.
- Specified by:
performPrediction in class PredictionModel
- Throws:
OperatorException
Copyright © 2001-2006