class_docstr: Contains unit tests for the TransportNNDistanceComputer class. 
docstr: Tests the computation of the distance for CNNs. 
docstr_tok: ["Tests","the","computation","of","the","distance","for","CNNs","."]
code: def test_mlp_distance_computation(self):
      """Tests the computation of the distance for CNNs."""
      self.report("Testing distance computation for specific mlps.")
      # Create the transport computation object
      (
          mlp_layer_labels,
          label_mismatch_penalty,
      ) = otmann.get_mlp_layer_label_mismatch_penalties(
          self.non_assignment_penalty, "reg"
      )
      mlp_tp_comp = otmann.OTMANNDistanceComputer(
          mlp_layer_labels,
          label_mismatch_penalty,
          self.non_assignment_penalty,
          otmann.MLP_STRUCTURAL_PENALTY_GROUPS,
          otmann.PATH_LENGTH_TYPES,
          dflt_mislabel_coeffs=1.0,
          dflt_struct_coeffs=1.0,
      )
      # Create the mlp architectures
      mlps = generate_mlp_architectures()
      struct_coeffs = [0.1, 0.2]
      dist_types = ["lp-emd", "lp", "emd"]
      mislabel_coeffs = [1.0] * len(struct_coeffs)
      self.report(
          "Testing distance computation for specific mlps with default coeffs."
      )
      self._test_dist_comp_for_single_conn_coeff(
          mlps, dist_types, mlp_tp_comp
      )
      self.report(
          "Testing distance computation for specific mlps with conn_coeffs=%s."
          % (struct_coeffs)
      )
      self._test_dist_comp_for_multiple_coeffs(
          mlps, dist_types, mislabel_coeffs, struct_coeffs, mlp_tp_comp
      )
  
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 13 for calling the TransportNNDistanceComputerTestCase obj's underlying member method code with example usage: obj.test_mlp_distance_computation() without return types