@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
BINARY or MULTICLASS MLModel . |
Map<String,Float> |
getPredictedScores() |
Float |
getPredictedValue()
The prediction value for
REGRESSION MLModel . |
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
BINARY or MULTICLASS MLModel . |
void |
setPredictedScores(Map<String,Float> predictedScores) |
void |
setPredictedValue(Float predictedValue)
The prediction value for
REGRESSION MLModel . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Prediction |
withDetails(Map<String,String> details) |
Prediction |
withPredictedLabel(String predictedLabel)
The prediction label for either a
BINARY or MULTICLASS MLModel . |
Prediction |
withPredictedScores(Map<String,Float> predictedScores) |
Prediction |
withPredictedValue(Float predictedValue)
The prediction value for
REGRESSION MLModel . |
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 Object
Object.toString()
public Prediction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.