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

Compatibility with Parallel Processing Methods #152

Open
mxhsin opened this issue Jul 3, 2024 · 2 comments
Open

Compatibility with Parallel Processing Methods #152

mxhsin opened this issue Jul 3, 2024 · 2 comments

Comments

@mxhsin
Copy link

mxhsin commented Jul 3, 2024

Hello,
Regarding GASearchCV, is it amenable and compatible with MPI or any other parallel processing method? Currently the fit method of GASearchCV takes very long to compute and is computationally expensive. Will it work with any parallel processing methods (eg. MPI) to speed up the process? Appreciate if you could help!

@rodrigo-arenas
Copy link
Owner

Hi @mxhsin, at this point, the only parallelism that is enabled is in the training of each individual, cross-validation is performed to calculate the fitness of the solution, and the level of parallelism is controlled by the parameter n_jobs of the GASearchCV class. The default value is None which means no parallelism, you can set it to -1 to use all the available CPUs.
Although this will increase the speed of training, it is still a generally slow process depending on how many individuals and generations you set.
You can also try to use callbacks to stop the training with early stopping strategies: Callbacks Tutorial

@yeodynasty
Copy link

Hi, can the individual runs be parallelized also?

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

3 participants