use*_*316 5 python-2.7 scikit-learn
拟合后如何获得sklearn GMM中每个分量的标准差?
model.fit(dataSet)
model.means_ is the means of each components.
model.weights_ is the co-efficient of each components.
Run Code Online (Sandbox Code Playgroud)
在哪里可以找到每个高斯分量的偏差?
谢谢,
小智 0
model.covariances_将为您提供协方差信息。
返回协方差取决于covariance_type,它是 GMM 的参数。
例如,如果covariance_type = 'diag',则返回协方差是 [pxq] 矩阵,其中p表示高斯分量的数量,q是输入的维数。
请参阅http://scikit-learn.org/stable/auto_examples/mixture/plot_gmm_covariances.html了解更多信息。
| 归档时间: |
|
| 查看次数: |
5264 次 |
| 最近记录: |