class_docstr: Test the PCA visualizer
class_docstr_tok: ["Test","the","PCA","visualizer"]
docstr: Test PCA visualizer 4 dimensions scaled (catch YellowbrickError).
docstr_tok: ["Test","PCA","visualizer","4","dimensions","scaled","(","catch","YellowbrickError",")","."]
code: def test_scale_true_4d_exception(self):
      """
      Test PCA visualizer 4 dimensions scaled (catch YellowbrickError).
      """
      params = {"scale": True, "projection": 4}
      msg = "Projection dimensions must be either 2 or 3"
      with pytest.raises(YellowbrickError, match=msg):
          PCA(**params)
  
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 14 for calling the TestPCA obj's underlying member method code with example usage: obj.test_scale_true_4d_exception() without return types