yellowbrick

YellowBrick ImportError: cannot import name 'safe_indexing' from 'sklearn.utils'

YellowBrick ImportError: cannot import name 'safe_indexing' from 'sklearn.utils' Question: I’m trying to plot a silhouette plot for a K-Means model I’ve run, however, I get the error: ImportError: cannot import name ‘safe_indexing’ from ‘sklearn.utils. I was initially getting the NotFoundError issue described in this post here however I got this issue once I fixed it. …

Total answers: 3

ModuleNotFoundError installing yellowbrick in Python

ModuleNotFoundError installing yellowbrick in Python Question: I am having trouble installing yellowbrick. I am using Anaconda, hence I took advantage of using the “conda install”. # set number of clusters kclusters = 5 pittsburgh_grouped_clustering = pittsburgh_grouped.drop(‘Neighborhood’, 1) X = pittsburgh_grouped.drop(‘Neighborhood’, 1) from sklearn.cluster import KMeans !conda install -c districtdatalabs yellowbrick from yellowbrick.cluster import KElbowVisualizer # …

Total answers: 3