public class PredictResult extends Object implements Serializable
Constructor and Description |
---|
PredictResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Prediction |
getPrediction()
Output from a predict operation.
|
int |
hashCode() |
void |
setPrediction(Prediction prediction)
Output from a predict operation.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictResult |
withPrediction(Prediction prediction)
Output from a predict operation.
|
public Prediction getPrediction()
public void setPrediction(Prediction prediction)
prediction
- Output from a predict operation.public PredictResult withPrediction(Prediction prediction)
Returns a reference to this object so that method calls can be chained together.
prediction
- Output from a predict operation.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.