qq_43062322 2022-09-23 20:46 采纳率: 83.3%
浏览 164
已结题

'GaussianMixture' object has no attribute 'covariances_'

'GaussianMixture' object has no attribute 'covariances_'

gmm = GaussianMixture(5)
gmm.means_ = np.array([[10], [20], [60], [80], [110]])
gmm.covars_ = np.array([[3], [3], [2], [2], [1]]) ** 2
gmm.weights_ = np.array([0.2, 0.2, 0.2, 0.2, 0.2])

X = gmm.sample(200000)
然后就报错 'GaussianMixture' object has no attribute 'covariances_',请问这个怎么解决

  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 系统已结题 10月4日
  • 已采纳回答 9月26日
  • 创建了问题 9月23日