com.rapidminer.operator.learner
Class SimpleBinaryPredictionModel
java.lang.Object
com.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.operator.AbstractModel
com.rapidminer.operator.learner.PredictionModel
com.rapidminer.operator.learner.SimpleBinaryPredictionModel
- All Implemented Interfaces:
- IOObject, Model, ResultObject, Saveable, Readable, Reportable, LoggingHandler, java.io.Serializable
- Direct Known Subclasses:
- LogisticRegressionModel
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.
- Author:
- Ingo Mierswa
- See Also:
- Serialized Form
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
addAction, getActions, getVisualizationComponent, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleBinaryPredictionModel
protected SimpleBinaryPredictionModel(ExampleSet exampleSet,
double threshold)
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 ExampleSet 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-2009 by Rapid-I