'Constructs `Orange.classification.MajorityModel` that always
returns majority value of given distribution.
If no or empty distribution given, constructs a model that returns equal
probabilities for each class value.
:param dist: domain for the `Table`
:param unif_maj: majority class for the special case of uniform
class distribution in the training data
:type dist: Orange.statistics.distribution.Discrete
:return: regression model that returns majority value
:rtype: Orange.classification.Model'

def __init__(self, dist, unif_maj=None):

    self.dist = np.array(dist)
    self.unif_maj = unif_maj
