Class MSE
java.lang.Object
planner.utils.evaluators.regrmetrics.RegressionMetric
planner.utils.evaluators.regrmetrics.MSE
- All Implemented Interfaces:
Evaluator
MSE is a class implementing the Mean Squared Error over the RegressionMetric
abstract super class.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Field Summary
Fields inherited from class planner.utils.evaluators.regrmetrics.RegressionMetric
exe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
compute
(double[] real, double[] estimation) Computes Mean Squared Error (MSE) given the real predicted value for an instance of a dataset and the estimation computed from an objective function.Methods inherited from class planner.utils.evaluators.regrmetrics.RegressionMetric
evaluate
-
Constructor Details
-
MSE
Constructor.- Parameters:
exp
- configuration of the current execution.
-
-
Method Details
-
compute
public double compute(double[] real, double[] estimation) Computes Mean Squared Error (MSE) given the real predicted value for an instance of a dataset and the estimation computed from an objective function.- Specified by:
compute
in classRegressionMetric
- Parameters:
real
- real value for a given instance of a dataset.estimation
- prediction of the objective function used.- Returns:
- error of the estimation.
-