8000 minor fix in gaussian_mixture.py (#14120) · scikit-learn/scikit-learn@b3030f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b3030f0

Browse files
djsutherlandjnothman
authored andcommitted
minor fix in gaussian_mixture.py (#14120)
This was working, since `'full' in 'full'`, but for clarity and accident-avoidance it's probably better to use `==`.
1 parent 801cca8 commit b3030f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/mixture/gaussian_mixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def _compute_precision_cholesky(covariances, covariance_type):
309309
"or collapsed samples). Try to decrease the number of components, "
310310
"or increase reg_covar.")
311311

312-
if covariance_type in 'full':
312+
if covariance_type == 'full':
313313
n_components, n_features, _ = covariances.shape
314314
precisions_chol = np.empty((n_components, n_features, n_features))
315315
for k, covariance in enumerate(covariances):

0 commit comments

Comments
 (0)
0