rasbt / mlxtend

A library of extension and helper modules for Python's data analysis and machine learning libraries.
https://rasbt.github.io/mlxtend/
Other
4.9k stars 868 forks source link

stacking, named base models #641

Open bmreiniger opened 4 years ago

bmreiniger commented 4 years ago

It would be nice if the base models in the stacking ensembles explicitly required names, similar to sklearn's Pipeline named_steps and ColumnTransformer. When all my base models are themselves pipelines, digging into the nest to find actual names becomes tedious. (Especially in the context of set_params and grid searches, where the default behavior requires things like pipeline-1__...: http://rasbt.github.io/mlxtend/user_guide/classifier/StackingCVClassifier/#example-3-stacked-cv-classification-and-gridsearch )

Maybe it's too late to try to change the API to require names as in ColumnTransformer, but perhaps as an optional parameter?

rasbt commented 4 years ago

I agree that this can be helpful, especially for large sets of classifiers. I think having an optional way for naming them would be nice.