Sklearn Gaussian Mixture lock parameters?
问题 I'm trying to fit some gaussians, of which I already have a pretty good idea about the initial parameters (in this case, I'm generating the distributions, so I should always be able to fit these). However, I can't seem to figure out how to force the mean to be e.g. 0 for both gaussians. Is it possible? m.means_ = ... doesn't work. from sklearn import mixture import numpy as np import math import matplotlib.pyplot as plt from scipy import stats a = np.random.normal(0, 0.2, 500) b = np.random