Class F1MacroAverageL
- java.lang.Object
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableMeasure<I,java.lang.Double>
-
- ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableDoubleMeasure<double[]>
-
- ai.libs.jaicore.ml.core.evaluation.measure.multilabel.ADecomposableMultilabelMeasure
-
- ai.libs.jaicore.ml.core.evaluation.measure.multilabel.InstanceWiseF1
-
- ai.libs.jaicore.ml.core.evaluation.measure.multilabel.F1MacroAverageL
-
- All Implemented Interfaces:
IMeasure<double[],java.lang.Double>,IMultilabelMeasure
public class F1MacroAverageL extends InstanceWiseF1
-
-
Constructor Summary
Constructors Constructor Description F1MacroAverageL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublecalculateAvgMeasure(java.util.List<double[]> actual, java.util.List<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.java.util.List<java.lang.Double>calculateMeasure(java.util.List<double[]> actual, java.util.List<double[]> expected)Computes the measure for a lists of input actual and the expected outcome expected.-
Methods inherited from class ai.libs.jaicore.ml.core.evaluation.measure.multilabel.InstanceWiseF1
calculateMeasure
-
Methods inherited from class ai.libs.jaicore.ml.core.evaluation.measure.ADecomposableMeasure
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
-
calculateMeasure
public java.util.List<java.lang.Double> calculateMeasure(java.util.List<double[]> actual, java.util.List<double[]> expected)Description copied from interface:IMeasureComputes the measure for a lists of input actual and the expected outcome expected.- Specified by:
calculateMeasurein interfaceIMeasure<double[],java.lang.Double>- Overrides:
calculateMeasurein classADecomposableMeasure<double[],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 list of return values of the measure.
-
calculateAvgMeasure
public java.lang.Double calculateAvgMeasure(java.util.List<double[]> actual, java.util.List<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<double[],java.lang.Double>- Overrides:
calculateAvgMeasurein classInstanceWiseF1- 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.
-
-