docstr: Regression of the activations from a pre-computed mel-spectrogram patch
  
  This test skips the mel-spectrogram computation part to focus on possible
  problems with the tensorflow backend.
docstr_tok: ["Regression","of","the","activations","from","a","pre-computed","mel-spectrogram","patch","This","test","skips","the","mel-spectrogram","computation","part","to","focus","on","possible","problems","with","the","tensorflow","backend","."]
code: def testRegressionFrozenModelFromSpecPatch(self):
      """Regression of the activations from a pre-computed mel-spectrogram patch
  
      This test skips the mel-spectrogram computation part to focus on possible
      problems with the tensorflow backend.
      """
  
      model = join(
          testdata.models_dir,
          "fsd-sinet",
          "fsd-sinet-vgg41-tlpf-ibp-1.pb",
      )
      melspectrogram_file = join(
          filedir(),
          "tensorflowpredictfsdsinet",
          "patch_id1013_t55_156_f96_waterdrip_mel_spectrogram.npy",
      )
      expected_file = join(
          filedir(),
          "tensorflowpredictfsdsinet",
          "patch_id1013_t55_156_f96_waterdrip_scores_TLPF5x5_IBP_vgg41.npy",
      )
  
      mel_spectrogram = numpy.load(melspectrogram_file).astype(
          "float32"
      )
  
      mel_spectrogram = numpy.expand_dims(mel_spectrogram, 0)
      mel_spectrogram = numpy.expand_dims(mel_spectrogram, -1)
  
      expected = numpy.load(expected_file)
  
      pool = Pool()
      input_name = "x"
      output_name = "model/predictions/Sigmoid"
      pool.set(input_name, mel_spectrogram)
  
      predictor = TensorflowPredict(
          graphFilename=model,
          inputs=[input_name],
          outputs=[output_name],
          squeeze=False,
      )
  
      found = predictor(pool)[output_name]
      found = found.squeeze()
  
      self.assertAlmostEqualVector(found, expected, 1e-3)
  
imports: from essentia_test import *
label_desc: Use image node_id 3 for calling the TestTensorFlowPredictFSDSINet obj's underlying member method code with example usage: obj.testRegressionFrozenModelFromSpecPatch() without return types