Package com.datarobot.prediction
Interface IRegressionPredictor
-
- All Superinterfaces:
IEventProvider<RegressionScoreEventInfo>,IPredictorInfo
public interface IRegressionPredictor extends IPredictorInfo, IEventProvider<RegressionScoreEventInfo>
Interface for Regression models.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublescore(Iterable<?> row)Scores a single row.doublescore(Map<String,?> row)Scores a single row.Score<Double>scoreWithExplanations(Iterable<?> row)Scoring with the default prediction explanations parameters.Score<Double>scoreWithExplanations(Iterable<?> row, ExplanationParams predictionExplanationParams)Scoring with some overriden prediction explanation parameters.Score<Double>scoreWithExplanations(Map<String,?> row)Scoring with the default prediction explanations parameters.Score<Double>scoreWithExplanations(Map<String,?> row, ExplanationParams predictionExplanationParams)Scoring with some overriden prediction explanation parameters.-
Methods inherited from interface com.datarobot.prediction.IEventProvider
getScoreEvent
-
Methods inherited from interface com.datarobot.prediction.IPredictorInfo
getDefaultPredictionExplanationParams, getFeatures, getModelId, getModelInfo, getPredictorClass
-
-
-
-
Method Detail
-
score
double score(Map<String,?> row)
Scores a single row.- Parameters:
row- row with features.- Returns:
- predicted value.
-
score
double score(Iterable<?> row)
Scores a single row.NOTE:
Here
Iterable<?> rowis the feature values in the same order as they goes inIPredictorInfo.getFeatures().- Parameters:
row- row with feature values in right order.- Returns:
- predicted.
-
scoreWithExplanations
Score<Double> scoreWithExplanations(Map<String,?> row)
Scoring with the default prediction explanations parameters.- Returns:
- scores with explanations.
-
scoreWithExplanations
Score<Double> scoreWithExplanations(Iterable<?> row)
Scoring with the default prediction explanations parameters.- Returns:
- scores with explanations.
-
scoreWithExplanations
Score<Double> scoreWithExplanations(Map<String,?> row, ExplanationParams predictionExplanationParams)
Scoring with some overriden prediction explanation parameters.- Parameters:
predictionExplanationParams- prediction explanations parameters to override.- Returns:
- scores with explanations.
-
scoreWithExplanations
Score<Double> scoreWithExplanations(Iterable<?> row, ExplanationParams predictionExplanationParams)
Scoring with some overriden prediction explanation parameters.- Parameters:
predictionExplanationParams- prediction explanations parameters to override.- Returns:
- scores with explanations.
-
-