| Constructor and Description |
|---|
PrecisionAsLoss(int positiveClass) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
calculateAvgMeasure(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.
|
java.lang.Double |
calculateMeasure(java.lang.Double actual,
java.lang.Double expected)
Computes the measure for a measured input actual and the expected outcome expected.
|
java.util.List<java.lang.Double> |
calculateMeasure(java.util.List<java.lang.Double> actual,
java.util.List<java.lang.Double> expected)
Computes the measure for a lists of input actual and the expected outcome expected.
|
java.lang.Double |
calculateMeasure(java.util.List<java.lang.Double> actual,
java.util.List<java.lang.Double> expected,
ai.libs.jaicore.basic.aggregate.IAggregateFunction<java.lang.Double> aggregateFunction)
Computes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the given aggregation.
|
public java.lang.Double calculateMeasure(java.lang.Double actual,
java.lang.Double expected)
IMeasurecalculateMeasure in interface IMeasure<java.lang.Double,java.lang.Double>actual - The actually available values.expected - The expected values to compare the actual values with.public java.util.List<java.lang.Double> calculateMeasure(java.util.List<java.lang.Double> actual,
java.util.List<java.lang.Double> expected)
IMeasurecalculateMeasure in interface IMeasure<java.lang.Double,java.lang.Double>actual - The list of actually available values.expected - The list of expected values to compare the actual values with.public java.lang.Double calculateMeasure(java.util.List<java.lang.Double> actual,
java.util.List<java.lang.Double> expected,
ai.libs.jaicore.basic.aggregate.IAggregateFunction<java.lang.Double> aggregateFunction)
IMeasurecalculateMeasure in interface IMeasure<java.lang.Double,java.lang.Double>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.public java.lang.Double calculateAvgMeasure(java.util.List<java.lang.Double> actual,
java.util.List<java.lang.Double> expected)
IMeasurecalculateAvgMeasure in interface IMeasure<java.lang.Double,java.lang.Double>actual - The list of actually available values.expected - The list of expected values to compare the actual values with.