Skip to content

plot_partial_dependence overrides feature names when passing ax #15598

@NicolasHug

Description

@NicolasHug

The above snippet will overwrite the feature names to 0 and 1 even though they where passed at the first call. Not a bug strictly speaking but maybe we can make it more intuitive? CC @thomasjpfan

disp = plot_partial_dependence(
    gbdt, X, features=[0, 1], feature_names=('blah', 'blop'),
    ax=ax)

plot_partial_dependence(
    other_gbdt, X, features=[0, 1],  ax=disp.axes_))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions