class_docstr: Tests tabular hot-flips on classification tasks.
class_docstr_tok: ["Tests","tabular","hot-flips","on","classification","tasks","."]
docstr: Tests the tests model predict method.
code: def test_test_model(self):
      """Tests the tests model predict method."""
  
      dataset = ClassificationTestDataset()
      model = ClassificationTestModel(dataset)
      preds = list(model.predict(dataset.examples))
      self.assertEqual(np.argmax(preds[0]["preds"]), 2)
      self.assertEqual(np.argmax(preds[1]["preds"]), 1)
      self.assertEqual(np.argmax(preds[2]["preds"]), 4)
      self.assertEqual(np.argmax(preds[3]["preds"]), 3)
  
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 2 for calling the ClassificationTabularMtcTest obj's underlying member method code with example usage: obj.test_test_model() without return types