class_docstr: Test the ProjectionVisualizer base class
class_docstr_tok: ["Test","the","ProjectionVisualizer","base","class"]
docstr: Ensure user can override discrete target_type by specifying continuous
docstr_tok: ["Ensure","user","can","override","discrete","target_type","by","specifying","continuous"]
code: def test_continuous_when_target_discrete(self):
      """
      Ensure user can override discrete target_type by specifying continuous
      """
      _, ax = plt.subplots()
      X, y = self.discrete
      visualizer = MockVisualizer(
          ax=ax,
          projection="2D",
          target_type="continuous",
          colormap="cool",
      )
      visualizer.fit(X, y)
      visualizer.transform(X, y)
      visualizer.finalize()
      visualizer.cax.set_yticklabels([])
      self.assert_images_similar(visualizer)
  
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 3 for calling the TestProjectionVisualizer obj's underlying member method code with example usage: obj.test_continuous_when_target_discrete() without return types