Skip to content

[Bug]: Feature importances not present in individual ensemble models #1398

@lucazav

Description

@lucazav

Describe the bug

After I fit an AutoML ensemble for a regression ("ensemble": True in AutoML settings), I get the best model of the ensamble in this way:

best_model = automl.best_model_for_estimator(automl.best_estimator)

If I try to get feature importances for this model in the following way, I get an empty result:

best_model.feature_importances_

Steps to reproduce

No response

Model Used

No response

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

FLAML 2.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions