Skip to content

Commit b28bb28

Browse files
authored
Fix all 10 runs running with the same seed (ddbourgin#64)
1 parent 741954b commit b28bb28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy_ml/plots/gmm_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def plot():
8484
# take best fit over 10 runs
8585
best_elbo = -np.inf
8686
for k in range(10):
87-
_G = GMM(C=n_classes, seed=i * 3)
87+
_G = GMM(C=n_classes, seed=k * 3)
8888
ret = _G.fit(X, max_iter=100, verbose=False)
8989
while ret != 0:
9090
print("Components collapsed; Refitting")

0 commit comments

Comments
 (0)