'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'

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
