public interface ClassificationModel extends Model<ClassificationResult>
Observation
instancesModifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getClassLabels() |
int |
getNumClasses() |
Try<ClassificationResult> |
predict(Observation o)
Tentatively performs a prediction
|
observationBuilder
Try<ClassificationResult> predict(Observation o)
predict
in interface Model<ClassificationResult>
o
- the Observation
to scoreTry
for the prediction result, with either the prediction
or an error message detailing why the prediction could not be computedint getNumClasses()
java.util.Collection<java.lang.String> getClassLabels()