pomegranate icon indicating copy to clipboard operation
pomegranate copied to clipboard

Question re model.forward_backward(sequence)

Open malonzm1 opened this issue 2 years ago • 1 comments

Hi!

I understand model.forward_backward(sequence) returns the transition probability matrix. I just wanted to clarify the order. If I had 3 hidden states (with start and end) will the row/column names then be "start:s0:s1:s2:end" or "s0:s1:s2:start:end" or something else?

Thanks and good day.

malonzm1 avatar May 30 '22 09:05 malonzm1

You can see the order in model.states state_list = [state.name for state in model.states] start and end are usually last columns.

denklewer avatar Aug 02 '22 19:08 denklewer

Thank you for opening an issue. pomegranate has recently been rewritten from the ground up to use PyTorch instead of Cython (v1.0.0), and so all issues are being closed as they are likely out of date. Please re-open or start a new issue if a related issue is still present in the new codebase.

jmschrei avatar Apr 16 '23 06:04 jmschrei