evalml.model_understanding.graph_permutation_importance

evalml.model_understanding.graph_permutation_importance(pipeline, X, y, objective, importance_threshold=0)[source]

Generate a bar graph of the pipeline’s permutation importance.

Parameters
  • pipeline (PipelineBase or subclass) – Fitted pipeline

  • X (ww.DataTable, pd.DataFrame) – The input data used to score and compute permutation importance

  • y (ww.DataColumn, pd.Series) – The target data

  • objective (str, ObjectiveBase) – Objective to score on

  • importance_threshold (float, optional) – If provided, graph features with a permutation importance whose absolute value is larger than importance_threshold. Defaults to zero.

Returns

plotly.Figure, a bar graph showing features and their respective permutation importance.