code: @Override
      public double f1Score(INDArray input, INDArray labels) {
          feedForward(input);
          setLabels(labels);
          Evaluation eval = new Evaluation();
          eval.eval(labels, output(input));
          return eval.f1();
      }
docs: Perform inference and then calculate the F1 score of the output(input) vs. the labels.
  
  @param input  the input to perform inference with
  @param labels the true labels
  @return the score for the given input,label pairs