(self, X)
return probs
Returns majority class for each given instance in X.

        :param X: data table for which to make predictions
        :type X: Orange.data.Table
        :return: predicted value
        :rtype: vector of majority values
Returns majority class for each given instance in X.
Returns majority class for each given instance in X .
def predict(self, X):
        """
        Returns majority class for each given instance in X.

        :param X: data table for which to make predictions
        :type X: Orange.data.Table
        :return: predicted value
        :rtype: vector of majority values
        """
        probs = np.tile(self.dist, (X.shape[0], 1))
        if self.unif_maj is not None:
            value = np.tile(self.unif_maj, (X.shape[0], ))
            return value, probs
        return probs
def predict ( self , X ) : probs = np . tile ( self . dist , ( X . shape [ 0 ] , 1 ) ) if self . unif_maj is not None : value = np . tile ( self . unif_maj , ( X . shape [ 0 ] , ) ) return value , probs return probs