Skip to content

Wrong state inference? #3

@hunglv51

Description

@hunglv51

Hello TreB1eN,

I have a question about the code that predict the hidden state in viterbi_inference

state = states_seq[step]
state_prob = pathStates[step][state]
states_seq[step -1] = state_prob

I think to predict state, we have to choose the state with the highest probability like code that predict last state

states_seq[self.N - 1] = torch.argmax(pathScores[self.N-1, :], 0)

Can you explain it to me?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions