code: def test_decode(self):
      correct_state_seq1 = np.array(
          [
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              1,
              2,
              2,
              2,
              2,
              2,
              3,
              3,
              3,
              3,
              3,
              2,
              2,
              1,
              0,
              0,
              0,
              0,
          ]
      )
      # correct_p_seq1 = -36.94762254
      correct_state_seq2 = np.array(
          [
              1,
              1,
              1,
              1,
              1,
              0,
              0,
              0,
              0,
              0,
              1,
              2,
              2,
              3,
              3,
              3,
              3,
              3,
              3,
              2,
              2,
              2,
              2,
              2,
              2,
              2,
          ]
      )
      # correct_p_seq2 = -34.03217714
  
      state_seq = self.crf.process(OBS_SEQ_1)
      self.assertTrue((state_seq == correct_state_seq1).all())
  
      state_seq = self.crf.process(OBS_SEQ_2)
      self.assertTrue((state_seq == correct_state_seq2).all())
  
file_path: madmom/tests/test_ml_crf.py
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from madmom.ml.crf import *
label_desc: Use image node_id 2 for calling the TestConditionalRandomFieldClass obj's underlying member method code with example usage: obj.test_decode() without return types