class_docstr: A unittest class for testing the HopSkipJump attack.
class_docstr_tok: ["A","unittest","class","for","testing","the","HopSkipJump","attack","."]
code: def test_check_params(self):
      ptc = get_image_classifier_pt(from_logits=True)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, norm=1)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, max_iter=1.0)
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, max_iter=-1)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, max_eval=1.0)
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, max_eval=-1)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, init_eval=1.0)
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, init_eval=-1)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, init_eval=10, max_eval=1)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, init_size=1.0)
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, init_size=-1)
  
      with self.assertRaises(ValueError):
          _ = HopSkipJump(ptc, verbose="true")
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import keras.backend
  import numpy
  from art.attacks.evasion.hop_skip_jump import HopSkipJump
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification import ClassifierMixin
  from art.utils import random_targets
  from tests.utils import TestBase
  from tests.utils import get_image_classifier_tf, get_image_classifier_kr, get_image_classifier_pt
  from tests.utils import get_tabular_classifier_pt, master_seed
  from tests.attacks.utils import backend_test_classifier_type_check_fail
label_desc: Use image node_id 8 for calling the TestHopSkipJump obj's underlying member method code with example usage: obj.test_check_params() without return types