code: @Override
      public Prediction _predictRecord(Record r) { 
          ModelParameters modelParameters = knowledgeBase.getModelParameters();
          
          AssociativeArray predictionProbabilities = hypothesisFunction(r.getX(), getPreviousThitaMappings(), modelParameters.getWeights(), modelParameters.getThitas());
  
          Object predictedClass=getSelectedClassFromClassScores(predictionProbabilities);
  
          return new Prediction(predictedClass, predictionProbabilities);
      }
docs: {@inheritDoc}