Skip to content

Improve multiclass explainability in smart reports - #793

Merged
guillaume-vignal merged 19 commits into
MAIF:developfrom
guillaume-vignal:feature/smart-report-class-interactions
Oct 9, 2026
Merged

guillaume-vignal merged 19 commits into
MAIF:developfrom
guillaume-vignal:feature/smart-report-class-interactions

Conversation

@guillaume-vignal

@guillaume-vignal guillaume-vignal commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes: #792

Summary

Fix missing class-level explainability in multiclass reports and improve report navigation and runtime data handling.

Changes

  • Add a class explainability block that renders all classes for multiclass models and the configured class for binary models.
  • Add sidebar links to each class section, with optional per-class top interaction plots.
  • Make report table index display configurable and render missing numeric values as N/A.
  • Improve responsive report navigation and add a CLI script plus examples for generating reports.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.74359% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.62%. Comparing base (e8cda61) to head (2b9c7dd).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
shapash/report/core.py 85.45% 3 Missing and 5 partials ⚠️
shapash/report/blocks.py 92.15% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #793      +/-   ##
===========================================
+ Coverage    79.13%   79.62%   +0.48%     
===========================================
  Files           59       59              
  Lines         7305     7396      +91     
  Branches      1538     1553      +15     
===========================================
+ Hits          5781     5889     +108     
+ Misses         947      929      -18     
- Partials       577      578       +1     
Files with missing lines Coverage Δ
shapash/report/common.py 71.42% <100.00%> (+0.64%) ⬆️
shapash/report/panel_support.py 75.63% <100.00%> (+4.83%) ⬆️
shapash/report/blocks.py 69.29% <92.15%> (+3.81%) ⬆️
shapash/report/core.py 81.11% <85.45%> (+12.30%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread shapash/report/blocks.py Outdated
Comment thread scripts/generate_report.py
Comment thread scripts/generate_report.py
Comment thread scripts/generate_report.py
Comment thread shapash/report/assets/report_styles.css Outdated
Comment thread shapash/report/blocks.py
@guillaume-vignal
guillaume-vignal changed the base branch from develop to master October 6, 2026 18:54
@guillaume-vignal
guillaume-vignal changed the base branch from master to develop October 6, 2026 18:55
@guillaume-vignal
guillaume-vignal merged commit fe1c28c into MAIF:develop Oct 9, 2026
1 check passed
@guillaume-vignal
guillaume-vignal deleted the feature/smart-report-class-interactions branch October 9, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix class explainability and report data display issues

2 participants