Calculates a covariance matrix shrunk on the diagonal
Read more in the User Guide.
emp_cov : array-like, shape (n_features, n_features)
Covariance matrix to be shrunk
shrinkage : float, 0 <= shrinkage <= 1
Coefficient in the convex combination used for the computation of the shrunk estimate.
shrunk_cov : array-like
The regularized (shrunk) covariance is given by
- (1 - shrinkage)*cov
where mu = trace(cov) / n_features