sklearn.covariance.empirical_covariance()

sklearn.covariance.empirical_covariance

sklearn.covariance.empirical_covariance(X, assume_centered=False) [source]

Computes the Maximum likelihood covariance estimator

Parameters:

X : ndarray, shape (n_samples, n_features)

Data from which to compute the covariance estimate

assume_centered : Boolean

If True, data are not centered before computation. Useful when working with data whose mean is almost, but not exactly zero. If False, data are centered before computation.

Returns:

covariance : 2D ndarray, shape (n_features, n_features)

Empirical covariance (Maximum Likelihood Estimator).

Examples using sklearn.covariance.empirical_covariance

© 2007–2016 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.covariance.empirical_covariance.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部