Class RootMeanSquaredErrorLoss
- java.lang.Object
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableMeasure<I,java.lang.Double>
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableDoubleMeasure<java.lang.Double>
-
- ai.libs.jaicore.ml.core.evaluation.measure.singlelabel.ASquaredErrorLoss
-
- ai.libs.jaicore.ml.core.evaluation.measure.singlelabel.RootMeanSquaredErrorLoss
-
- All Implemented Interfaces:
IMeasure<java.lang.Double,java.lang.Double>,java.io.Serializable
public class RootMeanSquaredErrorLoss extends ASquaredErrorLoss
The root mean squared loss function. This loss function computes the sum of differences of expected/actual pairs, divides this by the number of observations, and takes the square root.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RootMeanSquaredErrorLoss()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublecalculateAvgMeasure(java.util.List<java.lang.Double> actual, java.util.List<java.lang.Double> expected)Computes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the mean, as this is the most frequently used aggregate function.-
Methods inherited from class ai.libs.jaicore.ml.core.evaluation.measure.singlelabel.ASquaredErrorLoss
calculateMeasure
-
Methods inherited from class ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableMeasure
calculateMeasure, calculateMeasure
-
-
-
-
Method Detail
-
calculateAvgMeasure
public java.lang.Double calculateAvgMeasure(java.util.List<java.lang.Double> actual, java.util.List<java.lang.Double> expected)Description copied from interface:IMeasureComputes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the mean, as this is the most frequently used aggregate function.- Specified by:
calculateAvgMeasurein interfaceIMeasure<java.lang.Double,java.lang.Double>- Overrides:
calculateAvgMeasurein classADecomposableDoubleMeasure<java.lang.Double>- Parameters:
actual- The list of actually available values.expected- The list of expected values to compare the actual values with.- Returns:
- The mean of return values as output by the instance-wise measure.
-
-