class_docstr: Tests tabular hot-flips with regression models.
class_docstr_tok: ["Tests","tabular","hot-flips","with","regression","models","."]
docstr: Tests the client can set the number of features that can be changed.
code: def test_max_num_of_changed_columns(self):
      """Tests the client can set the number of features that can be changed."""
      self._config["Regression threshold"] = "0.25"
      self._config["Maximum number of columns to change"] = "1"
      self._example = {"x_1": 0.3, "x_2": 0.3}
      output_1 = self._gen.generate(
          example=self._example,
          model=self._model,
          dataset=self._dataset,
          config=self._config,
      )
      self._config["Maximum number of columns to change"] = "2"
      output_2 = self._gen.generate(
          example=self._example,
          model=self._model,
          dataset=self._dataset,
          config=self._config,
      )
      self.assertNotEmpty(output_1)
      self.assertNotEmpty(output_2)
      self.assertGreater(len(output_2), len(output_1))
  
imports: from unittest import mock
  from absl.testing import absltest
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.components import minimal_targeted_counterfactuals
  from lit_nlp.lib import caching
  import numpy
  import scipy.special
label_desc: Use image node_id 6 for calling the RegressionTabularMtcTest obj's underlying member method code with example usage: obj.test_max_num_of_changed_columns() without return types