class_docstr: Test the PCA visualizer
class_docstr_tok: ["Test","the","PCA","visualizer"]
docstr: Test the PCA visualizer 3 dimensions scaled.
docstr_tok: ["Test","the","PCA","visualizer","3","dimensions","scaled","."]
code: def test_scale_true_3d(self):
      """
      Test the PCA visualizer 3 dimensions scaled.
      """
      params = {"scale": True, "projection": 3, "random_state": 7382}
      visualizer = PCA(**params).fit(self.discrete.X)
      pca_array = visualizer.transform(self.discrete.X)
  
      # Image comparison tests
      self.assert_images_similar(visualizer)
  
      # Assert PCA transformation occurred successfully
      assert pca_array.shape == (self.discrete.X.shape[0], 3)
  
imports: import sys
  import pytest
  import numpy
  import numpy.testing
  from unittest import mock
  from tests.base import VisualTestCase, IS_WINDOWS_OR_CONDA
  from yellowbrick.features.pca import *
  from yellowbrick.exceptions import YellowbrickError, NotFitted
label_desc: Use image node_id 11 for calling the TestPCA obj's underlying member method code with example usage: obj.test_scale_true_3d() without return types