public class PredictResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PredictResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Prediction |
getPrediction()
The output from a
Predict operation: |
int |
hashCode() |
void |
setPrediction(Prediction prediction)
The output from a
Predict operation: |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictResult |
withPrediction(Prediction prediction)
The output from a
Predict operation: |
public Prediction getPrediction()
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.
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.
public void setPrediction(Prediction 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.
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.
public PredictResult withPrediction(Prediction 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.
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.