title: YellowBrick ImportError: cannot import name 'safe_indexing' from 'sklearn.utils'
body: <p>I'm trying to plot a silhouette plot for a K-Means model I've run, however, I get the error: <code>ImportError: cannot import name 'safe_indexing' from 'sklearn.utils</code>.</p>
  <p>I was initially getting the NotFoundError issue described in this <a href="https://stackoverflow.com/questions/64963619/yellowbrick-module-notfounderror-in-python">post here</a> however I got this issue once I fixed it. My code is below:</p>
  <pre><code>from yellowbrick.cluster import SilhouetteVisualizer
  
  fig, ax = plt.subplots(2, 2, figsize=(15,8))
  for i in range(1,6):
      
      kmeans = KMeans(n_clusters=i, init='k-means++', n_init=10, max_iter=100, random_state=0)
      q, mod = divmod(i, 2)
    
      visualizer = SilhouetteVisualizer(km, colors='yellowbrick', ax=ax[q-1][mod])
      visualizer.fit(ct1)
  </code></pre>