@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Prediction extends Object implements Serializable, Cloneable, StructuredPojo
 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.
 
| Constructor and Description | 
|---|
| Prediction() | 
| Modifier and Type | Method and Description | 
|---|---|
| Prediction | addDetailsEntry(String key,
               String value) | 
| Prediction | addPredictedScoresEntry(String key,
                       Float value) | 
| Prediction | clearDetailsEntries()Removes all the entries added into Details. | 
| Prediction | clearPredictedScoresEntries()Removes all the entries added into PredictedScores. | 
| Prediction | clone() | 
| boolean | equals(Object obj) | 
| Map<String,String> | getDetails() | 
| String | getPredictedLabel()
 The prediction label for either a  BINARYorMULTICLASSMLModel. | 
| Map<String,Float> | getPredictedScores() | 
| Float | getPredictedValue()The prediction value for  REGRESSIONMLModel. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setDetails(Map<String,String> details) | 
| void | setPredictedLabel(String predictedLabel)
 The prediction label for either a  BINARYorMULTICLASSMLModel. | 
| void | setPredictedScores(Map<String,Float> predictedScores) | 
| void | setPredictedValue(Float predictedValue)The prediction value for  REGRESSIONMLModel. | 
| String | toString()Returns a string representation of this object. | 
| Prediction | withDetails(Map<String,String> details) | 
| Prediction | withPredictedLabel(String predictedLabel)
 The prediction label for either a  BINARYorMULTICLASSMLModel. | 
| Prediction | withPredictedScores(Map<String,Float> predictedScores) | 
| Prediction | withPredictedValue(Float predictedValue)The prediction value for  REGRESSIONMLModel. | 
public void setPredictedLabel(String predictedLabel)
 The prediction label for either a BINARY or MULTICLASS MLModel.
 
predictedLabel - The prediction label for either a BINARY or MULTICLASS MLModel.public String getPredictedLabel()
 The prediction label for either a BINARY or MULTICLASS MLModel.
 
BINARY or MULTICLASS MLModel.public Prediction withPredictedLabel(String predictedLabel)
 The prediction label for either a BINARY or MULTICLASS MLModel.
 
predictedLabel - The prediction label for either a BINARY or MULTICLASS MLModel.public void setPredictedValue(Float predictedValue)
REGRESSION MLModel.predictedValue - The prediction value for REGRESSION MLModel.public Float getPredictedValue()
REGRESSION MLModel.REGRESSION MLModel.public Prediction withPredictedValue(Float predictedValue)
REGRESSION MLModel.predictedValue - The prediction value for REGRESSION MLModel.public void setPredictedScores(Map<String,Float> predictedScores)
predictedScores - public Prediction withPredictedScores(Map<String,Float> predictedScores)
predictedScores - public Prediction addPredictedScoresEntry(String key, Float value)
public Prediction clearPredictedScoresEntries()
public Prediction withDetails(Map<String,String> details)
details - public Prediction addDetailsEntry(String key, String value)
public Prediction clearDetailsEntries()
public String toString()
toString in class ObjectObject.toString()public Prediction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.