Class AccuracyBinary

Object
AccuracyBinary
All Implemented Interfaces:
Computation<SInt,​ProtocolBuilderNumeric>

public class AccuracyBinary
extends Object
implements Computation<SInt,​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 Details

  • Method Details

    • buildComputation

      public DRes<SInt> buildComputation​(ProtocolBuilderNumeric builder)
      Specified by:
      buildComputation in interface Computation<SInt,​ProtocolBuilderNumeric>