public interface IClassificationPredictor extends IPredictorInfo
Modifier and Type | Method and Description |
---|---|
String[] |
getClassLabels()
Model specific class labels that will be predicted.
|
Map<String,Double> |
score(Iterable<?> row)
Scores a single row.
|
Map<String,Double> |
score(Map<String,?> row)
Scores a single row.
|
getFeatures, getModelId, getPredictorClass
String[] getClassLabels()
NOTE:
These labels will be used as a key set for outputs of score(Iterable)
and score(Map)
.
Map<String,Double> score(Map<String,?> row)
row
- row with feature values.Map<String,Double> score(Iterable<?> row)
NOTE:
Here Iterable<?> row
is the feature values in the same order as they goes in IPredictorInfo.getFeatures()
.
row
- row with feature values in right order.Copyright © 2021. All rights reserved.