@Generated(value="software.amazon.awssdk:codegen") public class Prediction extends Object implements StructuredPojo, software.amazon.awssdk.utils.builder.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<String,String> |
details() |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
String |
predictedLabel()
The prediction label for either a
BINARY or MULTICLASS MLModel. |
Map<String,Float> |
predictedScores() |
Float |
predictedValue()
The prediction value for
REGRESSION MLModel. |
static Class<? extends Prediction.Builder> |
serializableBuilderClass() |
Prediction.Builder |
toBuilder() |
String |
toString() |
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 Prediction.Builder toBuilder()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<Prediction.Builder,Prediction>public static Prediction.Builder builder()
public static Class<? extends Prediction.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.