Skip to content

Add lift curve plot and integrate style handling#736

Open
guillaume-vignal wants to merge 13 commits into
MAIF:masterfrom
guillaume-vignal:lift_curve_plot
Open

Add lift curve plot and integrate style handling#736
guillaume-vignal wants to merge 13 commits into
MAIF:masterfrom
guillaume-vignal:lift_curve_plot

Conversation

@guillaume-vignal

@guillaume-vignal guillaume-vignal commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Fixes: #735

Summary

  • add a new Plotly lift_curve_plot in evaluation metrics
  • expose lift_curve_plot in SmartPlotter
  • make lift curve colors style-driven via style_dict
  • ensure clustering plot uses active SmartPlotter style by default
  • add/update targeted unit tests and tutorial usage

Validation

  • pytest tests/unit_tests/explainer/test_smart_plotter.py -k "lift_curve_plot or clustering_by_explainability_plot"
image

@guillaume-vignal guillaume-vignal self-assigned this Jul 6, 2026
@guillaume-vignal guillaume-vignal added the enhancement New feature or request label Jul 6, 2026
Comment on lines +27 to +31
def _compute_lift_curve(
y_true_binary: np.ndarray | pd.Series,
y_score: np.ndarray | pd.Series,
nb: int = 100,
) -> tuple[np.ndarray, np.ndarray, float]:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a docstring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Lift Curve Plot to SmartPlotter (Plotly)

2 participants