'Check the parameter of the Dirichlet distribution.'

def _check_weights_parameters(self):

    if (self.weight_concentration_prior is None):
        self.weight_concentration_prior_ = (1.0 / self.n_components)
    elif (self.weight_concentration_prior > 0.0):
        self.weight_concentration_prior_ = self.weight_concentration_prior
    else:
        raise ValueError(("The    parameter    'weight_concentration_prior'    should    be    greater    than    0.,    but    got    %.3f." % self.weight_concentration_prior))
