Insufficient Zoom
mnaR99 opened this issue · 1 comments
I don't know if this is a bug or if the zoom is just limited, but when I try to modify the function for some features that are long-tailed distributed, the points end up overlapping, and I cannot continue using the interface. 🤔
When displaying the explanations from the interpret package, this doesn't happen because plotly has an 'infinite' zoom-in.
Hello @mnaR99, thanks for trying out GAM Changer!
When a user zooms over the plot, we use linear interpolation to smoothly change the radius of dots, so that dots appears to have the same size after zooming. As you have noticed, the method is not perfect.
If you are building GAM Changer from source, you can comment out the following lines to force dots to have the exact same radius value before and after zooming. It would result visually smaller dots after zooming.
gam-changer/src/global-explanation/continuous/cont-zoom.js
Lines 81 to 85 in d0a4cb5
To learn more about our zooming + scaling logic, you can see the code below:
gam-changer/src/global-explanation/continuous/cont-zoom.js
Lines 126 to 139 in d0a4cb5
I will consider exposing an API to let users control this behavior in their notebooks. I will close this issue for now. Feel free to reopen it if you have more question.