Class RegressionMetric
java.lang.Object
planner.utils.evaluators.regrmetrics.RegressionMetric
- All Implemented Interfaces:
Evaluator
RegressionMetric is an abstract class for representing the regression metrics
used when training with datasets, can be also considerated as evaluators of
the genotype of the individuals.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract double
compute
(double[] real, double[] estimation) Computes the error between the real value (stored in dataset instances) and the estimation made by the executed algorithm.double
evaluate
(double[] genotype) Evaluates the genotype given with a concrete configured RegressionMetric and the configured dataset for the current execution.
-
Field Details
-
exe
Configuration of the current execution.
-
-
Constructor Details
-
RegressionMetric
Constructor.- Parameters:
exe
- configuration of the current execution.
-
-
Method Details
-
compute
public abstract double compute(double[] real, double[] estimation) Computes the error between the real value (stored in dataset instances) and the estimation made by the executed algorithm.- Parameters:
real
- real value for a given instance of the dataset.estimation
- prediction of the objective function used.- Returns:
- error of the estimation.
-
evaluate
public double evaluate(double[] genotype) Evaluates the genotype given with a concrete configured RegressionMetric and the configured dataset for the current execution.
-