RandomizedSearchCV freezes computer
RobinReborn opened this issue · 0 comments
RobinReborn commented
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.