Package com.datarobot.model
Class Prediction
- java.lang.Object
-
- com.datarobot.model.Prediction
-
- All Implemented Interfaces:
java.io.Serializable
public class Prediction extends java.lang.Object implements java.io.SerializableA reference to aPredictionon the DataRobot server. Client code that uses the DataRobot AI API package generally should not construct these objects directly, they should be instantiated by AI API Client methods. This object may be out of sync with the DataRobot sever, for example, if multiple processes or users have permission to modify or delete it on the server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Prediction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)internaljava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()internaljava.lang.StringgetPrediction()Get thePredictionvalue (either a predicted class for classification or a predict value for regression)java.util.List<java.util.HashMap<java.lang.String,java.lang.Object>>getPredictionValues()Get details on aPrediction(i.e.java.lang.StringgetRowId()Get the row number for the data associated with thisPredictioninthashCode()internalvoidsetAdditionalProperty(java.lang.String name, java.lang.Object value)internaljava.lang.StringtoString()
-
-
-
Method Detail
-
getRowId
public java.lang.String getRowId()
Get the row number for the data associated with thisPrediction- Returns:
- The row number for this prediction data
-
getPrediction
public java.lang.String getPrediction()
Get thePredictionvalue (either a predicted class for classification or a predict value for regression)- Returns:
- The prediction value
-
getPredictionValues
public java.util.List<java.util.HashMap<java.lang.String,java.lang.Object>> getPredictionValues()
Get details on aPrediction(i.e. the probability of each label for classification)- Returns:
- The prediction value details
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
internal
-
setAdditionalProperty
public void setAdditionalProperty(java.lang.String name, java.lang.Object value)internal
-
hashCode
public int hashCode()
internal- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
internal- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-