Closed yijing332 closed 3 years ago
I think this is an issue with the parameters set. -- min_samples_split must be greater than 1. Can you fix that and see if it works? That being said, this error message is not very informative at all, and we'll add a better error message for this.
To answer your question, tune-sklearn should work with any sklearn estimator (it can do everything that GridSearchCV or RandomSearchCV can do); it only requires the estimator to have partial_fit or warm_start when you want to do early stopping.
@richardliaw
Thank you very much for your answer and help me find out the mistakes! I adjusted the parameters and tried again, but it still didn't seem to work, but when I remove the use_gpu parameter and reduce the number of n_jobs, it can run normally.
Great! Glad it works now. I'm assuming you have a gpu on the machine you ran this on right?
Yes, there are two GPUs on my laptop. Is it necessary to configure it when I use that param?
By default, tune-sklearn doesn't use gpu during training, so yes. It should work with n_jobs and use_gpu, so we'll take a look at this.
Closing this as we have seemed to address this issue!
I have a question,:Does Tune_sklearn only support estimators with 'partial_fit' or 'warm_start' attributes?
When I use the Randomforestclassifier as an estimator, the program always reports an error: This TuneGridSearchCV instance is not fitted yet.
Code: