class_docstr: Contains unit tests for the TransportNNDistanceComputer class. 
docstr: Constructor. 
docstr_tok: ["Constructor","."]
code: def __init__(self, *args, **kwargs):
      """Constructor."""
      super(TransportNNDistanceComputerTestCase, self).__init__(
          *args, **kwargs
      )
      self.non_assignment_penalty = 1
      (
          cnn_layer_labels,
          label_mismatch_penalty,
      ) = otmann.get_cnn_layer_label_mismatch_penalties(
          self.non_assignment_penalty
      )
      self.tp_comp = otmann.OTMANNDistanceComputer(
          cnn_layer_labels,
          label_mismatch_penalty,
          self.non_assignment_penalty,
          otmann.CNN_STRUCTURAL_PENALTY_GROUPS,
          otmann.PATH_LENGTH_TYPES,
          dflt_mislabel_coeffs=1.0,
          dflt_struct_coeffs=1.0,
          dflt_dist_type="lp-emd",
      )
      self.cnns = generate_cnn_architectures()
  
imports: import numpy
  from .None import otmann
  from .unittest_neural_network import generate_cnn_architectures, generate_mlp_architectures
  from ..utils.ancillary_utils import get_list_of_floats_as_str
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 1 to create a new TransportNNDistanceComputerTestCase object from inherited base classes: BaseTestClass with example: obj = TransportNNDistanceComputerTestCase()