class_docstr: Test the PCA visualizer
class_docstr_tok: ["Test","the","PCA","visualizer"]
docstr: Test continuous target
docstr_tok: ["Test","continuous","target"]
code: def test_continuous(self):
      """
      Test continuous target
      """
      visualizer = PCA(colormap="YlOrRd", random_state=2019)
      assert not hasattr(visualizer, "range_")
      visualizer.fit(*self.continuous)
      visualizer.transform(*self.continuous)
      assert hasattr(visualizer, "range_")
      assert not hasattr(visualizer, "classes_")
      visualizer.finalize()
  
      visualizer.cax.set_yticklabels([])
  
      # AppVeyor tests fail with RMS 10.085
      self.assert_images_similar(visualizer, windows_tol=10.5)
  
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 2 for calling the TestPCA obj's underlying member method code with example usage: obj.test_continuous() without return types