Skip to content

Commit 3fb9333

Browse files
jaquesgroblerGaelVaroquaux
authored andcommitted
Changed variable name x to covar_type
1 parent 51ddf4a commit 3fb9333

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/mixture/plot_gmm_classifier.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def make_ellipses(gmm, ax):
6565
n_classes = len(np.unique(y_train))
6666

6767
# Try GMMs using different types of covariances.
68-
classifiers = dict((x, GMM(n_components=n_classes, covariance_type=x,
69-
init_params='wc', n_iter=20))
70-
for x in ['spherical', 'diag', 'tied', 'full'])
68+
classifiers = dict((covar_type, GMM(n_components=n_classes,
69+
covariance_type=covar_type, init_params='wc', n_iter=20))
70+
for covar_type in ['spherical', 'diag', 'tied', 'full'])
7171

7272
n_classifiers = len(classifiers)
7373

0 commit comments

Comments
 (0)