class_docstr: Tests for the ModelVisualizer and wrapped estimator.
class_docstr_tok: ["Tests","for","the","ModelVisualizer","and","wrapped","estimator","."]
docstr: Test set_params from visualizer to wrapped estimator
code: def test_set_params(self):
      """
      Test set_params from visualizer to wrapped estimator
      """
      model = LinearSVC()
      oz = MockModelVisualizer(model)
  
      orig = oz.get_params()
      changes = {
          "param1": "water",
          "is_fitted": False,
          "estimator__C": 8.8,
          "intercept_scaling": 4.2,
          "dual": False,
      }
  
      oz.set_params(**changes)
      params = oz.get_params()
  
      for key, val in params.items():
          if key in changes:
              assert val == changes[key]
          elif key == "C":
              assert val == changes["estimator__C"]
          else:
              assert val == orig[key]
  
imports: import pytest
  import matplotlib.pyplot
  from yellowbrick.base import *
  from yellowbrick.base import VisualizerGrid
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.exceptions import YellowbrickWarning
  from yellowbrick.exceptions import YellowbrickValueError
  from unittest.mock import patch
  from unittest.mock import MagicMock
  from tests.rand import RandomVisualizer
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.svm import LinearSVC
  from sklearn.datasets import make_classification
label_desc: Use image node_id 2 for calling the TestModelVisualizer obj's underlying member method code with example usage: obj.test_set_params() without return types