How to recreate the model using the best suggested model settings? #889
-
I ran the estimator and found the following settings as most suitable for my data: Best hyperparmeter config: {'n_estimators': 138, 'max_leaves': 37, 'min_child_weight': 0.13424014283416638, 'learning_rate': 0.14945689534042633, 'subsample': 0.8690041677979473, 'colsample_bylevel': 0.8428026817665201, 'colsample_bytree': 0.8817575629900145, 'reg_alpha': 0.02106728247448324, 'reg_lambda': 39.44246914091348, 'FLAML_sample_size': 393296} And when I'm looking to retrain the model, I would like to use the same settings. I tried to define them using "custom_hp". But I'm having trouble in defining this. Is there any easy way to pick up these hyper-parameters and train on data? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @vinay-k12,
Please let me know if you need any further help! |
Beta Was this translation helpful? Give feedback.
Hi @vinay-k12,
Thank you for your question. There are two possible ways you can retain the model using the best config:
retrain_from_log
if you logged the search trajectory.It allows you to retain a model using the best config in your log file.
starting_points
without specifyingmax_iter
andtime_budget
. Find an example for usingstarting_points
here.Please let me know if you need any further help!