public class PredictResult extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
PredictResult() |
| Modifier and Type | Method and Description |
|---|---|
PredictResult |
clone() |
boolean |
equals(Object obj) |
Prediction |
getPrediction()
The output from a
Predict operation: |
int |
hashCode() |
void |
setPrediction(Prediction prediction)
The output from a
Predict operation: |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictResult |
withPrediction(Prediction prediction)
The output from a
Predict operation: |
public Prediction getPrediction()
Predict operation:
Details - Contains the following attributes:
DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY |
MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or
MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score
corresponding to each label.
PredictedValue - Present for a REGRESSION
MLModel request.
Predict operation:
Details - Contains the following attributes:
DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY |
MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or
MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score
corresponding to each label.
PredictedValue - Present for a REGRESSION
MLModel request.
public void setPrediction(Prediction prediction)
Predict operation:
Details - Contains the following attributes:
DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY |
MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or
MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score
corresponding to each label.
PredictedValue - Present for a REGRESSION
MLModel request.
prediction - The output from a Predict operation:
Details - Contains the following attributes:
DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY |
MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or
MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score
corresponding to each label.
PredictedValue - Present for a REGRESSION
MLModel request.
public PredictResult withPrediction(Prediction prediction)
Predict operation:
Details - Contains the following attributes:
DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY |
MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or
MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score
corresponding to each label.
PredictedValue - Present for a REGRESSION
MLModel request.
Returns a reference to this object so that method calls can be chained together.
prediction - The output from a Predict operation:
Details - Contains the following attributes:
DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY |
MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or
MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score
corresponding to each label.
PredictedValue - Present for a REGRESSION
MLModel request.
public String toString()
toString in class ObjectObject.toString()public PredictResult clone()
Copyright © 2015. All rights reserved.