Class FMeasure

  • All Implemented Interfaces:
    org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicPredictionPerformanceMeasure<java.lang.Integer,​org.api4.java.ai.ml.classification.singlelabel.evaluation.ISingleLabelClassification>
    Direct Known Subclasses:
    F1Measure

    public class FMeasure
    extends ASingleLabelClassificationPerformanceMeasure
    • Constructor Summary

      Constructors 
      Constructor Description
      FMeasure​(double beta, int positiveClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • FMeasure

        public FMeasure​(double beta,
                        int positiveClass)
    • Method Detail

      • 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>