I am trying to import Silhouette Visualizer and always get some errors, I have already updated the version of python and pip and tried uninstalling and installing scikit-learn and nothing works. I am getting this error:
Asked
Active
Viewed 953 times
0
-
1Please copy and paste the code, that will be very helpful :) – zhangxaochen Jan 11 '21 at 09:35
1 Answers
5
Thanks for checking out Yellowbrick!
This problem is occurring because scikit-learn recently changed their public/private API, so utils.safe_indexing
is now called utils._safe_indexing
. In order for the utility to work in Yellowbrick, we are working on a change to our usage of safe_indexing
to support users with versions of scikit-learn >= 0.24 without deprecating support for users with versions of scikit-learn < 0.24. That change will be available in the next version of Yellowbrick; you can track progress on the issue here.
In the meantime, you can avoid the error by downgrading your version of scikit-learn to <0.24 (e.g. pip install scikit-learn==0.23
)!

rebeccabilbro
- 477
- 4
- 3