evalml.model_understanding.binary_objective_vs_threshold

evalml.model_understanding.binary_objective_vs_threshold(pipeline, X, y, objective, steps=100)[source]
Computes objective score as a function of potential binary classification

decision thresholds for a fitted binary classification pipeline.

Parameters
  • pipeline (BinaryClassificationPipeline obj) – fitted binary classification pipeline

  • X (pd.DataFrame) – the input data used to compute objective score

  • y (pd.Series) – the target labels

  • objective (ObjectiveBase obj, str) – objective used to score

  • steps (int) – Number of intervals to divide and calculate objective score at

Returns

DataFrame with thresholds and the corresponding objective score calculated at each threshold

Return type

pd.DataFrame