code: @Override
      public Prediction _predictRecord(Record r) {
          AbstractModelParameters modelParameters = knowledgeBase.getModelParameters();
          Map<Integer, CL> clusterMap = modelParameters.getClusterMap();
          
          AssociativeArray clusterScores = new AssociativeArray();
          for(Integer clusterId : clusterMap.keySet()) {
              CL c = getFromClusterMap(clusterId, clusterMap);
              double probability = c.posteriorLogPdf(r);
              clusterScores.put(clusterId, probability);
          }
          
          Descriptives.normalizeExp(clusterScores);
  
          return new Prediction(getSelectedClusterFromScores(clusterScores), clusterScores);
      }
docs: {@inheritDoc}