class_docstr: Silhouette Visualizer Tests
class_docstr_tok: ["Silhouette","Visualizer","Tests"]
docstr: Test no exceptions for mini-batch kmeans silhouette visualizer
docstr_tok: ["Test","no","exceptions","for","mini-batch","kmeans","silhouette","visualizer"]
code: def test_integrated_mini_batch_kmeans_silhouette(self):
      """
      Test no exceptions for mini-batch kmeans silhouette visualizer
      """
      # NOTE see #182: cannot use occupancy dataset because of memory usage
  
      # Generate a blobs data set
      X, y = make_blobs(
          n_samples=1000,
          n_features=12,
          centers=8,
          shuffle=False,
          random_state=0,
      )
  
      fig = plt.figure()
      ax = fig.add_subplot()
  
      visualizer = SilhouetteVisualizer(
          MiniBatchKMeans(random_state=0), ax=ax
      )
      visualizer.fit(X)
      visualizer.finalize()
  
      self.assert_images_similar(visualizer, remove_legend=True)
  
imports: import sys
  import pytest
  import matplotlib.pyplot
  import numpy
  from sklearn.datasets import make_blobs
  from sklearn.cluster import KMeans, MiniBatchKMeans
  from sklearn.cluster import SpectralClustering, AgglomerativeClustering
  from unittest import mock
  from tests.base import VisualTestCase
  from yellowbrick.cluster.silhouette import SilhouetteVisualizer, silhouette_visualizer
label_desc: Use image node_id 2 for calling the TestSilhouetteVisualizer obj's underlying member method code with example usage: obj.test_integrated_mini_batch_kmeans_silhouette() without return types