Class Prediction
java.lang.Object
com.amazonaws.services.machinelearning.model.Prediction
- All Implemented Interfaces:
Serializable
,Cloneable
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 MULTICLASSMLModel
request. -
PredictedScores
- Contains the raw classification score corresponding to each label. -
PredictedValue
- Present for a REGRESSIONMLModel
request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDetailsEntry
(String key, String value) addPredictedScoresEntry
(String key, Float value) Removes all the entries added into Details.Removes all the entries added into PredictedScores.clone()
boolean
The prediction label for either a BINARY or MULTICLASSMLModel
.The prediction value for REGRESSIONMLModel
.int
hashCode()
void
setDetails
(Map<String, String> details) void
setPredictedLabel
(String predictedLabel) The prediction label for either a BINARY or MULTICLASSMLModel
.void
setPredictedScores
(Map<String, Float> predictedScores) void
setPredictedValue
(Float predictedValue) The prediction value for REGRESSIONMLModel
.toString()
Returns a string representation of this object; useful for testing and debugging.withDetails
(Map<String, String> details) withPredictedLabel
(String predictedLabel) The prediction label for either a BINARY or MULTICLASSMLModel
.withPredictedScores
(Map<String, Float> predictedScores) withPredictedValue
(Float predictedValue) The prediction value for REGRESSIONMLModel
.
-
Constructor Details
-
Prediction
public Prediction()
-
-
Method Details
-
setPredictedLabel
The prediction label for either a BINARY or MULTICLASSMLModel
.- Parameters:
predictedLabel
- The prediction label for either a BINARY or MULTICLASSMLModel
.
-
getPredictedLabel
The prediction label for either a BINARY or MULTICLASSMLModel
.- Returns:
- The prediction label for either a BINARY or MULTICLASS
MLModel
.
-
withPredictedLabel
The prediction label for either a BINARY or MULTICLASSMLModel
.- Parameters:
predictedLabel
- The prediction label for either a BINARY or MULTICLASSMLModel
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPredictedValue
The prediction value for REGRESSIONMLModel
.- Parameters:
predictedValue
- The prediction value for REGRESSIONMLModel
.
-
getPredictedValue
The prediction value for REGRESSIONMLModel
.- Returns:
- The prediction value for REGRESSION
MLModel
.
-
withPredictedValue
The prediction value for REGRESSIONMLModel
.- Parameters:
predictedValue
- The prediction value for REGRESSIONMLModel
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPredictedScores
- Returns:
-
setPredictedScores
- Parameters:
predictedScores
-
-
withPredictedScores
- Parameters:
predictedScores
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addPredictedScoresEntry
-
clearPredictedScoresEntries
Removes all the entries added into PredictedScores. <p> Returns a reference to this object so that method calls can be chained together. -
getDetails
- Returns:
-
setDetails
- Parameters:
details
-
-
withDetails
- Parameters:
details
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addDetailsEntry
-
clearDetailsEntries
Removes all the entries added into Details. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-