Class RAE
java.lang.Object
planner.utils.evaluators.regrmetrics.RegressionMetric
planner.utils.evaluators.regrmetrics.RAE
- All Implemented Interfaces:
Evaluator
RAE is a class implementing the Relative Absolute 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 Relative Absolute Error (RAE) 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
-
RAE
Constructor.- Parameters:
exp
- configuration of the current execution.
-
-
Method Details
-
compute
public double compute(double[] real, double[] estimation) Computes Relative Absolute Error (RAE) 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.
-