8000 [MRG] minor fix in gaussian_mixture.py by djsutherland · Pull Request #14120 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] minor fix in gaussian_mixture.py #14120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sklearn/mixture/gaussian_mixture.py
5523
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _compute_precision_cholesky(covariances, covariance_type):
"or collapsed samples). Try to decrease the number of components, "
"or increase reg_covar.")

if covariance_type in 'full':
if covariance_type == 'full':
n_components, n_features, _ = covariances.shape
precisions_chol = np.empty((n_components, n_features, n_features))
for k, covariance in enumerate(covariances):
Expand Down
0