Class AccuracyBinary

java.lang.Object
dk.alexandra.fresco.stat.mlp.evaluation.AccuracyBinary
All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.framework.value.SInt,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>

public class AccuracyBinary
extends Object
implements dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.framework.value.SInt,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Return the number of correct predictions in the given data set. It's assumed that there's only two different labels, 0 and 1. If there are more possibilities, use Accuracy instead.
  • Constructor Summary

    Constructors 
    Constructor Description
    AccuracyBinary​(MLP neuralNetwork, List<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> data, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> labels)  
  • Method Summary

    Modifier and Type Method Description
    dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt> buildComputation​(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)  

    Methods inherited from class java.lang.Object

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

    • AccuracyBinary

      public AccuracyBinary​(MLP neuralNetwork, List<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> data, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> labels)
  • Method Details

    • buildComputation

      public dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt> buildComputation​(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
      Specified by:
      buildComputation in interface dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.framework.value.SInt,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>