Class Prediction

  • All Implemented Interfaces:
    java.io.Serializable

    public class Prediction
    extends java.lang.Object
    implements java.io.Serializable
    A reference to a Prediction on 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
      boolean equals​(java.lang.Object other)
      internal
      java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      internal
      java.lang.String getPrediction()
      Get the Prediction value (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 a Prediction (i.e.
      java.lang.String getRowId()
      Get the row number for the data associated with this Prediction
      int hashCode()
      internal
      void setAdditionalProperty​(java.lang.String name, java.lang.Object value)
      internal
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Prediction

        public Prediction()
    • Method Detail

      • getRowId

        public java.lang.String getRowId()
        Get the row number for the data associated with this Prediction
        Returns:
        The row number for this prediction data
      • getPrediction

        public java.lang.String getPrediction()
        Get the Prediction value (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 a Prediction (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:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        internal
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object