code: def predict(self, X, lengths=None):
          
          _, state_sequence = self.decode(X, lengths)
          return state_sequence
docs: Find most likely state sequence corresponding to ``X``.
  
          Parameters
          ----------
          X : array-like, shape (n_samples, n_features)
              Feature matrix of individual samples.
  
          lengths : array-like of integers, shape (n_sequences, ), optional
              Lengths of the individual sequences in ``X``. The sum of
              these should be ``n_samples``.
  
          Returns
          -------
          state_sequence : array, shape (n_samples, )
              Labels for each sample from ``X``.