MAIF / shapash

🔅 Shapash: User-friendly Explainability and Interpretability to Develop Reliable and Transparent Machine Learning Models
https://maif.github.io/shapash/
Apache License 2.0
2.71k stars 331 forks source link

:bug: scatter plot prediction when not enough data #441

Closed ThomasBouche closed 1 year ago

ThomasBouche commented 1 year ago

Description When you wan't to display xpl.plot.scatter_plot_prediction() and you have not enough data, you have an error. The error comes from the fact that cutting the prediction error into intervals for the color palette gives duplicates in the presence of little data and causes an error

image image image

Resolution Drop duplicates when cutting

Python version : 3.9 Shapash version : 2.3.0 Operating System : Linux