Class RegressionMetrics

java.lang.Object
javax.visrec.ml.eval.EvaluationMetrics
deepnetts.eval.RegressionMetrics

public class RegressionMetrics extends javax.visrec.ml.eval.EvaluationMetrics
Common metrics for regression models.
  • Constructor Details

    • RegressionMetrics

      public RegressionMetrics()
  • Method Details

    • getR2

      public float getR2()
      Proportion of variance explained by the model.A value between 0 and 1, where 1 is the best and 0 worst. Intuitively how much the model prediction is better than using mean value as prediction.
    • setR2

      public void setR2(float r2)
    • getMeanSquaredError

      public float getMeanSquaredError()
      Mean squared error is the average value of the sum of squared errors.
    • setMeanSquaredError

      public void setMeanSquaredError(float meanSquaredError)
    • getRootMeanSquaredError

      public float getRootMeanSquaredError()
    • setRootMeanSquaredError

      public void setRootMeanSquaredError(float rootMeanSquaredError)
    • getMeanAbsoluteError

      public float getMeanAbsoluteError()
    • setMeanAbsoluteError

      public void setMeanAbsoluteError(float meanAbsoluteError)
    • getMeanAbsolutePercentageError

      public float getMeanAbsolutePercentageError()
    • getSquaredErrorSum

      public float getSquaredErrorSum()
    • setSquaredErrorSum

      public void setSquaredErrorSum(float squaredErrorSum)
    • setMeanAbsolutePercentageError

      public void setMeanAbsolutePercentageError(float meanAbsolutePercentageError)
    • getMaxError

      public float getMaxError()
    • setMaxError

      public void setMaxError(float maxError)
    • getResidualStandardError

      public float getResidualStandardError()
    • setResidualStandardError

      public void setResidualStandardError(float residualStandardError)
    • getFStat

      public float getFStat()
    • setFStat

      public void setFStat(float fStat)
    • toString

      public String toString()
      Overrides:
      toString in class javax.visrec.ml.eval.EvaluationMetrics