(self)
Determine prediction class probabilities.
Determine prediction class probabilities.
Determine prediction class probabilities .
def create_model(self):
        """
        Determine prediction class probabilities.
        """
        # laplace class probabilities
        self.probabilities = ((self.curr_class_dist + 1) /
                              (self.curr_class_dist.sum() +
                               len(self.curr_class_dist)))
        # predicted class
        self.prediction = (self.target_class if self.target_class is not None
                           else argmaxrnd(self.curr_class_dist))
def create_model ( self ) : # laplace class probabilities self . probabilities = ( ( self . curr_class_dist + 1 ) / ( self . curr_class_dist . sum ( ) + len ( self . curr_class_dist ) ) ) # predicted class self . prediction = ( self . target_class if self . target_class is not None else argmaxrnd ( self . curr_class_dist ) )