Package com.datarobot.prediction
Interface MulticlassPredictor
-
- All Superinterfaces:
Predictor
@Deprecated public interface MulticlassPredictor extends Predictor
Deprecated.Please retrain your model and use theIClassificationPredictor
interface instead.An interface for Classification models. For binary classifiers, the Predictor.score function should return the positive class probability. Predictor.score is not valid for multi-class predictors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Map<String,Double>
classificationScore(Row rowToScore)
Deprecated.Returns a map of class labels to probability for the given row.-
Methods inherited from interface com.datarobot.prediction.Predictor
get_double_predictors, get_string_predictors, score
-
-
-
-
Method Detail
-
classificationScore
Map<String,Double> classificationScore(Row rowToScore) throws Exception
Deprecated.Returns a map of class labels to probability for the given row.The Map should be an ordered map whose keySet is sorted in decreasing probability.
- Parameters:
rowToScore
- the Row object to be classified- Returns:
- a mapping from a string class label to a double probability
- Throws:
Exception
- If an input or internal exception occurs
-
-