Skip to content
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

n_jobs deprecated in sklearn Kmeans #11

Open
Aneoshun opened this issue Sep 20, 2023 · 1 comment
Open

n_jobs deprecated in sklearn Kmeans #11

Aneoshun opened this issue Sep 20, 2023 · 1 comment

Comments

@Aneoshun
Copy link
Member

Hi,

Running the cvt_rastrigin example (but I guess that's valid for any example) raises:
TypeError: KMeans.__init__() got an unexpected keyword argument 'n_jobs'

Removing this argument here solves it: https://github.com/resibots/pymap_elites/blob/master/map_elites/common.py#L194

However, I cannot find in the doc what this argument what used for, so I leave this to you @jbmouret to decide if it is safe to remove it.

Best,

@jbmouret
Copy link
Member

It was supposed to enable parallelization of Kmeans, but apparently they removed the argument. Please make a PR without it :)

Aneoshun added a commit that referenced this issue Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants