Class ADecomposableDoubleMeasure<I>
- java.lang.Object
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableMeasure<I,java.lang.Double>
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableDoubleMeasure<I>
-
- Type Parameters:
I- The type of the inputs to compute the measure.
- All Implemented Interfaces:
IMeasure<I,java.lang.Double>
- Direct Known Subclasses:
ADecomposableMultilabelMeasure,ASquaredErrorLoss,HammingLoss,JaccardScore,LossScoreTransformer,RankLoss,ZeroOneLoss
public abstract class ADecomposableDoubleMeasure<I> extends ADecomposableMeasure<I,java.lang.Double>
A measure that is decomposable by instances and aggregated by averaging.
-
-
Constructor Summary
Constructors Constructor Description ADecomposableDoubleMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublecalculateAvgMeasure(java.util.List<I> actual, java.util.List<I> 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.ADecomposableMeasure
calculateMeasure, calculateMeasure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.libs.jaicore.ml.core.evaluation.measure.IMeasure
calculateMeasure
-
-
-
-
Method Detail
-
calculateAvgMeasure
public java.lang.Double calculateAvgMeasure(java.util.List<I> actual, java.util.List<I> 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.- 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.
-
-