public abstract class BinaryClassifier extends Object implements Classifier
Label and treats like negative examples all the others| Modifier and Type | Field and Description |
|---|---|
protected Label |
positiveClass |
| Constructor and Description |
|---|
BinaryClassifier() |
| Modifier and Type | Method and Description |
|---|---|
Label |
getLabel() |
List<Label> |
getLabels()
Returns the labels representing the concept to be predicted.
|
abstract BinaryModel |
getModel()
Returns the model
|
abstract BinaryMarginClassifierOutput |
predict(Example example) |
void |
setLabel(Label label) |
void |
setLabels(List<Label> labels)
Sets the labels representing the concept to be predicted.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreset, setModelprotected Label positiveClass
public void setLabels(List<Label> labels)
PredictionFunctionsetLabels in interface PredictionFunctionpositiveClass - the label associated to the positive class, i.e. the list must contain a sigle entrypublic List<Label> getLabels()
PredictionFunctiongetLabels in interface PredictionFunctionpublic Label getLabel()
public void setLabel(Label label)
positiveClass - the label associated to the positive classpublic abstract BinaryMarginClassifierOutput predict(Example example)
predict in interface Classifierpredict in interface PredictionFunctionpublic abstract BinaryModel getModel()
PredictionFunctiongetModel in interface PredictionFunctionCopyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.