Documentation of 'jsat.regression.evaluation.RegressionScore' Java class
RegressionScore
jsat.regression.evaluation

Interface RegressionScore

    • Method Detail

      • prepare

        void prepare()
      • addResult

        void addResult(double prediction,
                       double trueValue,
                       double weight)
        Adds the given result to the score
        Parameters:
        prediction - the prediction for the data point
        trueValue - the true value for the data point
        weight - the weigh to assign to the data point
      • addResults

        void addResults(RegressionScore other)
        The score contained in this object is augmented with the results already accumulated in the other object. This does not result in an averaging, but alters the current object to have the same score it would have had if all the results were originally inserted into this object.

        This method is only required to work if other if of the same class as this object.
        Parameters:
        other - the object to add the results from
      • getScore

        double getScore()
        Computes the score for the results that have been enrolled via addResult(double, double, double)
        Returns:
        the score for the current results
      • lowerIsBetter

        boolean lowerIsBetter()
        Returns true if a lower score is better, or false if a higher score is better
        Returns:
        true if a lower score is better
      • equals

        boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getName

        java.lang.String getName()
        Returns the name to present for this score
        Returns:
        the score name

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.