Closed samching closed 7 years ago
yep, that's exactly what model_names
is for! let me know if any of that is unclear.
so, if you want to compare a bunch of models, you can do something like this
ml_predictor.train(data, model_names=['LGBMRegressor', 'XGBRegressor', 'DeepLearningRegressor', 'LinearRegression', 'RandomForestRegressor'])
we'll then run cross-validation to choose the best model.
in general, auto_ml does a lot of this: minimizes the amount of setting-tweaking you have to do by default, but gives you most of the ability to customize yourself if you want to pass in a few more params. for instance, trainin_params={'learning_rate': 0.2, 'n_estimators': 500}
will set those as parameters for the model being trained.
let me know if you have any other questions as you use this more! i'm going to close this issue, but please keep opening new ones with more questions!
A silly question: but it seems to me that the
auto_ml
trains only the relevantGradientBoosting
model by default. In order for it to train and choose from multiple models, do we just specify the models that we want to train and choose from in themodel_names
param?Thanks
From the API: