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

RandomizedSearchCV freezes computer #4

Open
RobinReborn opened this issue Jan 23, 2020 · 0 comments
Open

RandomizedSearchCV freezes computer #4

RobinReborn opened this issue Jan 23, 2020 · 0 comments

Comments

@RobinReborn
Copy link

I have adapted your code for a larger dataset and had it freeze when I ran the line

rf_random = RandomizedSearchCV(estimator=rf, param_distributions=random_grid, n_iter = 100, scoring='neg_mean_absolute_error', cv = 3, verbose=2, random_state=42, n_jobs=-1, return_train_score=True)
I think this is because you assigned n_jobs = -1. Keeping the default (None, or manually setting to 1 or some value less than the total cores you have) should prevent this but lower computation time.

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

1 participant