code: protected void toJavaFillPreds0(SB bodySb) {
      // Pick max index as a prediction
      if (isClassifier()) {
        if (_priorClassDist!=null && _modelClassDist!=null) {
          bodySb.i().p("water.util.ModelUtils.correctProbabilities(preds, PRIOR_CLASS_DISTRIB, MODEL_CLASS_DISTRIB);").nl();
        }
        bodySb.i().p("preds[0] = water.util.ModelUtils.getPrediction(preds,data);").nl();
      } else {
        bodySb.i().p("preds[0] = preds[1];").nl();
      }
    }
docs: Fill preds[0] based on already filled and unified preds[1,..NCLASSES].