public class PredictResult extends Object implements Serializable
Constructor and Description |
---|
PredictResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Prediction |
getPrediction()
The output from a
Predict operation: |
int |
hashCode() |
void |
setPrediction(Prediction prediction)
The output from a
Predict operation: |
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 String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.