StructuredPojo
, ToCopyableBuilder<Prediction.Builder,Prediction>
@Generated("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 | Description |
---|---|---|
static interface |
Prediction.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Prediction.Builder |
builder() |
|
Map<String,String> |
details() |
|
boolean |
equals(Object obj) |
|
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() |
|
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() |
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()
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.