[Bug]: Feature importances not present for an ensemble
Describe the bug
After I fit an AutoML ensemble for a regression ("ensemble": True in AutoML settings), trying to get the feature importances as follow I get an empty result:
automl.feature_importances_
As the final model is a StackRegressor, the final feature importances can be calculated by averaging the feature importances of each base estimator.
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
FLAML 2.3.3
Hi @lucazav , thank you for reporting this. Currently, we simply retrieve the feature_importances_ from the model, since StackingRegressor doesn't have feature_importances_, we set it to None in FLAML. I prefer wait for scikit-learn to support feature_importances_ for ensemble. WDYT? Thanks.