Class ZeroOneLoss

  • All Implemented Interfaces:
    org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicInstancePredictionPerformanceMeasure<java.lang.Object,​java.lang.Object>

    public class ZeroOneLoss
    extends java.lang.Object
    implements org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicInstancePredictionPerformanceMeasure<java.lang.Object,​java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ZeroOneLoss()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double loss​(java.lang.Object expected, java.lang.Object predicted)  
      double score​(java.lang.Object expected, java.lang.Object predicted)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZeroOneLoss

        public ZeroOneLoss()
    • Method Detail

      • loss

        public double loss​(java.lang.Object expected,
                           java.lang.Object predicted)
        Specified by:
        loss in interface org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicInstancePredictionPerformanceMeasure<java.lang.Object,​java.lang.Object>
      • score

        public double score​(java.lang.Object expected,
                            java.lang.Object predicted)
        Specified by:
        score in interface org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicInstancePredictionPerformanceMeasure<java.lang.Object,​java.lang.Object>