class_docstr: The MockVisualizer implements the ProjectionVisualizer interface using
  PCA as an internal transformer. This visualizer is used to directly test
  how subclasses interact with the ProjectionVisualizer base class.
class_docstr_tok: ["The","MockVisualizer","implements","the","ProjectionVisualizer","interface","using","PCA","as","an","internal","transformer",".","This","visualizer","is","used","to","directly","test","how","subclasses","interact","with","the","ProjectionVisualizer","base","class","."]
code: def __init__(
      self,
      ax=None,
      features=None,
      classes=None,
      colors=None,
      colormap=None,
      target_type="auto",
      projection=2,
      alpha=0.75,
      colorbar=True,
      **kwargs,
  ):
      super(MockVisualizer, self).__init__(
          ax=ax,
          features=features,
          classes=classes,
          colors=colors,
          colormap=colormap,
          target_type=target_type,
          projection=projection,
          alpha=alpha,
          colorbar=colorbar,
          **kwargs,
      )
  
      self.pca_transformer = Pipeline(
          [
              ("scale", StandardScaler()),
              ("pca", PCA(self.projection, random_state=2019)),
          ]
      )
  
imports: import pytest
  import numpy.testing
  import matplotlib.pyplot
  from yellowbrick.features.projection import *
  from yellowbrick.exceptions import YellowbrickValueError
  from tests.base import VisualTestCase
  from unittest import mock
  from sklearn.decomposition import PCA
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import StandardScaler
label_desc: Use image node_id 1 to create a new MockVisualizer object from inherited base classes: ProjectionVisualizer with example: obj = MockVisualizer(ax, features, classes, colors, colormap, target_type, projection, alpha, colorbar)