def __init__(self, M, D, means=None, covars=None, weights=None, cvtype='diag'):
        self.M = M
        self.D = D
        if cvtype in GMM.cvtype_name_list:
            self.cvtype = cvtype 
        else:
            raise RuntimeError("Specified cvtype is not allowed, try one of " + str(GMM.cvtype_name_list))

        self.variant_param_spaces = GMM.variant_param_autotune if GMM.autotune else GMM.variant_param_default
        self.names_of_backends_to_use = GMM.names_of_backends_to_use
        self.components = GMMComponents(M, D, weights, means, covars)
        self.eval_data = GMMEvalData(1, M)
        self.clf = None # pure python mirror module

        if means is None and covars is None and weights is None:
            self.components_seeded = False
        else:
            self.components_seeded = True

    #Called the first time a GMM instance tries to use a specialized function
This proves that when an AttributeError is raised inside of the request.user
dataset/ETHPy150Open hcook/gmm/gmm_specializer/gmm.py/GMM.__init__--crossover with--dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_request.py/TestUserSetter.test_calling_user_fails_when_attribute_error_is_raised