public abstract class BinaryClassifier extends Object implements Classifier
Label
and treats like negative examples all the othersModifier 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, wait
reset, setModel
protected Label positiveClass
public void setLabels(List<Label> labels)
PredictionFunction
setLabels
in interface PredictionFunction
positiveClass
- the label associated to the positive class, i.e. the list must contain a sigle entrypublic List<Label> getLabels()
PredictionFunction
getLabels
in interface PredictionFunction
public Label getLabel()
public void setLabel(Label label)
positiveClass
- the label associated to the positive classpublic abstract BinaryMarginClassifierOutput predict(Example example)
predict
in interface Classifier
predict
in interface PredictionFunction
public abstract BinaryModel getModel()
PredictionFunction
getModel
in interface PredictionFunction
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.