evalml.pipelines.graph_permutation_importance¶
-
evalml.pipelines.
graph_permutation_importance
(pipeline, X, y, objective, show_all_features=False)[source]¶ Generate a bar graph of the pipeline’s permutation importance.
- Parameters
pipeline (PipelineBase or subclass) – Fitted pipeline
X (pd.DataFrame) – The input data used to score and compute permutation importance
y (pd.Series) – The target labels
objective (str, ObjectiveBase) – Objective to score on
show_all_features (bool, optional) – If True, graph features with a permutation importance value of zero. Defaults to False.
- Returns
plotly.Figure, a bar graph showing features and their respective permutation importance.