Class Predict

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

public class Predict
extends Object
implements dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.framework.value.SInt,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Assuming that the given neural network has n dimensional output, this function applies the network to the given input and finds the index of the output i with 0 ≤ i < n containing the largest number.
  • Constructor Summary

    Constructors 
    Constructor Description
    Predict​(MLP neuralNetwork, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> input)  
  • 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

    • Predict

      public Predict​(MLP neuralNetwork, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> input)
  • 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>