@Generated(value="software.amazon.awssdk:codegen") public class Prediction extends Object implements StructuredPojo, ToCopyableBuilder<Prediction.Builder,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.
Modifier and Type | Class and Description |
---|---|
static interface |
Prediction.Builder |
Modifier and Type | Method and Description |
---|---|
static Prediction.Builder |
builder() |
Map<DetailsAttributes,String> |
details()
Returns the value of the Details property for this object.
|
Map<String,String> |
detailsStrings()
Returns the value of the Details property for this object.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
predictedLabel()
The prediction label for either a
BINARY or MULTICLASS MLModel . |
Map<String,Float> |
predictedScores()
Returns the value of the PredictedScores property for this object.
|
Float |
predictedValue()
The prediction value for
REGRESSION MLModel . |
static Class<? extends Prediction.Builder> |
serializableBuilderClass() |
Prediction.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String predictedLabel()
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
BINARY
or MULTICLASS
MLModel
.public Float predictedValue()
REGRESSION
MLModel
.REGRESSION
MLModel
.public Map<String,Float> predictedScores()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<DetailsAttributes,String> details()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> detailsStrings()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Prediction.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Prediction.Builder,Prediction>
public static Prediction.Builder builder()
public static Class<? extends Prediction.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.