Class AAreaUnderCurvePerformanceMeasure

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected double getAreaUnderCurve​(java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.Double,​java.lang.Double>> curveCoordinates)
      Computes the area under the curve coordinates, assuming a linear interpolation between the coordinates.
      java.lang.Object getPositiveClass()  
      java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.Double,​java.lang.Integer>> getPredictionList​(java.util.List<? extends java.lang.Integer> expected, java.util.List<? extends org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification> predicted)  
      abstract double getXValue​(int tp, int fp, int tn, int fn)  
      abstract double getYValue​(int tp, int fp, int tn, int fn)  
      double score​(java.util.List<? extends java.lang.Integer> expected, java.util.List<? extends org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification> predicted)
      If this performance measure is originally a loss function its loss is transformed into a score by multiplying the loss with -1.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicPredictionPerformanceMeasure

        loss, loss, score
    • Constructor Detail

      • AAreaUnderCurvePerformanceMeasure

        public AAreaUnderCurvePerformanceMeasure​(int positiveClass)
      • AAreaUnderCurvePerformanceMeasure

        public AAreaUnderCurvePerformanceMeasure()
    • Method Detail

      • getPositiveClass

        public java.lang.Object getPositiveClass()
      • getPredictionList

        public java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.Double,​java.lang.Integer>> getPredictionList​(java.util.List<? extends java.lang.Integer> expected,
                                                                                                                           java.util.List<? extends org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification> predicted)
      • getAreaUnderCurve

        protected double getAreaUnderCurve​(java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.Double,​java.lang.Double>> curveCoordinates)
        Computes the area under the curve coordinates, assuming a linear interpolation between the coordinates.
        Parameters:
        curveCoordinates - The points of the curve in ascending order (according to x-axis).
        Returns:
        The area under the curve.
      • score

        public double score​(java.util.List<? extends java.lang.Integer> expected,
                            java.util.List<? extends org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification> predicted)
        Description copied from class: APredictionPerformanceMeasure
        If this performance measure is originally a loss function its loss is transformed into a score by multiplying the loss with -1. (score=-loss).
        Specified by:
        score in interface org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicPredictionPerformanceMeasure<java.lang.Integer,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification>
        Overrides:
        score in class APredictionPerformanceMeasure<java.lang.Integer,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification>
      • getXValue

        public abstract double getXValue​(int tp,
                                         int fp,
                                         int tn,
                                         int fn)
      • getYValue

        public abstract double getYValue​(int tp,
                                         int fp,
                                         int tn,
                                         int fn)