code: @Override
      public Prediction _predictRecord(Record r) {
          AssociativeArray predictionScores = calculateClassScores(r.getX());
          
          Object predictedClass=getSelectedClassFromClassScores(predictionScores);
  
          Descriptives.normalize(predictionScores);
          
          return new Prediction(predictedClass, predictionScores);
      }
docs: {@inheritDoc}