'Check the Gaussian mixture parameters are well defined.'

def _check_parameters(self, X):

    (_, n_features) = X.shape
    if (self.covariance_type not in ['spherical', 'tied', 'diag', 'full']):
        raise ValueError(("Invalid    value    for    'covariance_type':    %s    'covariance_type'    should    be    in    ['spherical',    'tied',    'diag',    'full']" % self.covariance_type))
    if (self.weights_init is not None):
        self.weights_init = _check_weights(self.weights_init, self.n_components)
    if (self.means_init is not None):
        self.means_init = _check_means(self.means_init, self.n_components, n_features)
    if (self.precisions_init is not None):
        self.precisions_init = _check_precisions(self.precisions_init, self.covariance_type, self.n_components, n_features)
