class_docstr: Unit tests for the NNModifier class. 
class_docstr_tok: ["Unit","tests","for","the","NNModifier","class","."]
docstr: Constructor. 
docstr_tok: ["Constructor","."]
code: def __init__(self, *args, **kwargs):
      """Constructor."""
      super(NNModifierTestCase, self).__init__(*args, **kwargs)
      self.cnns = generate_cnn_architectures()
      self.mlps = generate_mlp_architectures()
      self.save_dir = "../scratch/unittest_modifier_class/"
      self.cnn_constraint_checker = nn_domains.CNNConstraintChecker(
          50, 4, np.inf, 4.0, 5, 5, 100, 8000, 8
      )
      self.mlp_constraint_checker = nn_domains.MLPConstraintChecker(
          50, 4, np.inf, 4.0, 5, 5, 100, 8000, 8
      )
      self.cnn_modifier = nn_modifiers.NNModifier(
          self.cnn_constraint_checker
      )
      self.mlp_modifier = nn_modifiers.NNModifier(
          self.mlp_constraint_checker
      )
      self.modifier_wo_cc = nn_modifiers.NNModifier(None)
  
imports: from copy import deepcopy
  import numpy
  import os
  from shutil import rmtree
  import unittest
  from .None import nn_domains
  from .None import nn_modifiers
  from .neural_network import NeuralNetwork
  from .nn_visualise import visualise_nn
  from .unittest_neural_network import generate_cnn_architectures, generate_mlp_architectures
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 1 to create a new NNModifierTestCase object from inherited base classes: BaseTestClass with example: obj = NNModifierTestCase()