Class Accuracy

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

public class Accuracy
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. The output of the given neural network is computed as the entry in the output vector with the highest value.
  • Constructor Summary

    Constructors 
    Constructor Description
    Accuracy​(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

    • Accuracy

      public Accuracy​(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>