Add Contributions Projection Plot to the Shapash HTML Report
Maintainers usually reply within 10 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- html, machine-learning, python
- Domain
- data-visualization, machine-learning
Research direction
Reuse the existing contributions_projection_plot from SmartPlotter and embed three colorings (prediction, true values, prediction error) into the HTML produced by SmartExplainer.report. Start by locating how other plots (true vs predicted, feature importance, local explanations) are added to the report, then wire the new plot the same way. Done when the static report includes the three comparable projection views without requiring the WebApp.
Written by the indexing model from the issue text.
Description
Description
The new contributions_projection_plot visualization projects each instance’s Shapley values into a 2D space, offering deep insight into why predictions are correct or incorrect.
Currently, the Shapash Report (generated via SmartExplainer.report) includes plots such as:
- True vs Predicted plots,
- Feature importance,
- Local explanations.
However, it does not yet include the Contributions Projection Plot, which could add significant value to static model analysis.
Feature Proposal
-
Integrate the Contributions Projection Plot into the Shapash HTML report.
-
Include three versions of the plot (or a toggle):
- Projection colored by prediction (or probability score).
- Projection colored by true values.
- Projection colored by prediction error.
-
Allow users to visually compare these plots to identify clusters of well/poorly predicted instances.
Expected Benefits
- Provide a static yet rich view of the Shapley-based projections for stakeholders who consume the report without using the WebApp.
- Make it easy to identify zones of high error or unusual behavior without running live code.
Implementation Notes
- Reuse the
contributions_projection_plotlogic fromSmartPlotter. - Embed them into the HTML report.
- Dominant language
- Jupyter Notebook
- Stars
- 3.3k
- Forks
- 390
- Avg merge
- 7d 15h
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MAIF/shapash
-
Distribution plot crashes when a numeric feature is constant in the train or test setPossibly taken @adembilge claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
MAIF/shapash#847 · 1 comment ·
Maintainers usually reply within 10 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 10 days
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 10 days
-
Extend end-to-end model support for scikit-learn, Keras, TensorFlow and PyTorchPossibly taken @guillaume-vignal claimed this 34 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 10 days
-
Add native TabICL backend with automatic selection in SmartExplainerPossibly taken @FlorisRimb claimed this 31 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
MAIF/shapash#811 · 1 assignee ·
Maintainers usually reply within 10 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
ranaroussi/quantstats#592 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SticsRPacks/CroPlotR#185 ·
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mantidproject/mslice#1284 ·
Maintainers usually reply within 1 day
-
enhancement plugin/echarts priority/P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day