Package deepnetts.eval
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.
-
Field Summary
Fields inherited from class javax.visrec.ml.eval.EvaluationMetrics
ACCURACY, F_STAT, F1SCORE, MEAN_ABSOLUTE_ERROR, MEAN_SQUARED_ERROR, PRECISION, R_SQUARED, RECALL, RESIDUAL_SQUARE_SUM, RESIDUAL_STANDARD_ERROR, ROOT_MEAN_SQUARED_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetFStat()floatfloatfloatfloatMean squared error is the average value of the sum of squared errors.floatgetR2()Proportion of variance explained by the model.A value between 0 and 1, where 1 is the best and 0 worst.floatfloatfloatvoidsetFStat(float fStat) voidsetMaxError(float maxError) voidsetMeanAbsoluteError(float meanAbsoluteError) voidsetMeanAbsolutePercentageError(float meanAbsolutePercentageError) voidsetMeanSquaredError(float meanSquaredError) voidsetR2(float r2) voidsetResidualStandardError(float residualStandardError) voidsetRootMeanSquaredError(float rootMeanSquaredError) voidsetSquaredErrorSum(float squaredErrorSum) toString()Methods inherited from class javax.visrec.ml.eval.EvaluationMetrics
get, set
-
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
- Overrides:
toStringin classjavax.visrec.ml.eval.EvaluationMetrics
-