code: @Override
      public Prediction _predictRecord(Record r) {
          ModelParameters modelParameters = knowledgeBase.getModelParameters();
          
          Set<Object> classesSet = modelParameters.getClasses();
          Map<List<Object>, Double> thitas = modelParameters.getThitas();
          
          AssociativeArray predictionScores = new AssociativeArray();
          for(Object theClass : classesSet) {
              predictionScores.put(theClass, calculateClassScore(r.getX(), theClass, thitas));
          }
  
          Object predictedClass=getSelectedClassFromClassScores(predictionScores);
  
          Descriptives.normalizeExp(predictionScores);
          
          return new Prediction(predictedClass, predictionScores);
      }
docs: {@inheritDoc}