class_docstr: A unittest class for testing Feature Collision attack.
class_docstr_tok: ["A","unittest","class","for","testing","Feature","Collision","attack","."]
code: def test_check_params(self):
      krc = get_image_classifier_kr(from_logits=True)
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              learning_rate=-1,
          )
  
      with self.assertRaises(TypeError):
          _ = FeatureCollisionAttack(
              krc, target=self.x_train_mnist, feature_layer=1.0
          )
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              decay_coeff=-1,
          )
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              stopping_tol=-1,
          )
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              obj_threshold=-1,
          )
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              max_iter=-1,
          )
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              watermark=1,
          )
  
      with self.assertRaises(ValueError):
          _ = FeatureCollisionAttack(
              krc,
              target=self.x_train_mnist,
              feature_layer=1,
              verbose="true",
          )
  
file_path: adversarial-robustness-toolbox/tests/attacks/test_feature_collision.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.attacks.poisoning.feature_collision_attack import FeatureCollisionAttack
  from tests.utils import TestBase, master_seed, get_image_classifier_kr
label_desc: Use image node_id 5 for calling the TestFeatureCollision obj's underlying member method code with example usage: obj.test_check_params() without return types