Skip to content

Commit

Permalink
Fix Kmeans depreacted argument in common.py
Browse files Browse the repository at this point in the history
fixes #11
  • Loading branch information
Aneoshun authored Sep 20, 2023
1 parent d9cb187 commit 0158f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map_elites/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def cvt(k, dim, samples, cvt_use_cache=True):

x = np.random.rand(samples, dim)
k_means = KMeans(init='k-means++', n_clusters=k,
n_init=1, n_jobs=-1, verbose=1)#,algorithm="full")
n_init=1, verbose=1)#,algorithm="full")
k_means.fit(x)
__write_centroids(k_means.cluster_centers_)

Expand Down

0 comments on commit 0158f36

Please sign in to comment.