Class ADecomposableMeasure<I,O>
- java.lang.Object
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableMeasure<I,O>
-
- Type Parameters:
I- The type of the inputs.O- The type of the measurement result.
- All Implemented Interfaces:
IMeasure<I,O>
- Direct Known Subclasses:
ADecomposableDoubleMeasure
public abstract class ADecomposableMeasure<I,O> extends java.lang.Object implements IMeasure<I,O>
A measure that is aggregated from e.g. instance-wise computations of the respective measure and which is then aggregated, e.g. taking the mean.
-
-
Constructor Summary
Constructors Constructor Description ADecomposableMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<O>calculateMeasure(java.util.List<I> actual, java.util.List<I> expected)Computes the measure for a lists of input actual and the expected outcome expected.OcalculateMeasure(java.util.List<I> actual, java.util.List<I> expected, ai.libs.jaicore.basic.aggregate.IAggregateFunction<O> aggregateFunction)Computes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the given aggregation.-
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
calculateAvgMeasure, calculateMeasure
-
-
-
-
Method Detail
-
calculateMeasure
public java.util.List<O> calculateMeasure(java.util.List<I> actual, java.util.List<I> expected)
Description copied from interface:IMeasureComputes the measure for a lists of input actual and the expected outcome expected.- Specified by:
calculateMeasurein interfaceIMeasure<I,O>- Parameters:
actual- The list of actually available values.expected- The list of expected values to compare the actual values with.- Returns:
- The list of return values of the measure.
-
calculateMeasure
public O calculateMeasure(java.util.List<I> actual, java.util.List<I> expected, ai.libs.jaicore.basic.aggregate.IAggregateFunction<O> aggregateFunction)
Description copied from interface:IMeasureComputes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the given aggregation.- Specified by:
calculateMeasurein interfaceIMeasure<I,O>- Parameters:
actual- The list of actually available values.expected- The list of expected values to compare the actual values with.aggregateFunction- The aggregate function to be used to aggregate all the measurements.- Returns:
- The aggregated return value of the measure.
-
-