Hi Professor/TA,
In the assignment a2, it is not mentioned explicitly where to create instance variable states and it is being used in the main function. We can do in any function expect viterbi of HMM class?
Thanks,
Ranjeet
Yes - I'd recommend initializing the states variable in the fit_transition_probas function. This should be a sorted list of strings, one per state in the model.
Hi Professor/TA, In the assignment a2, it is not mentioned explicitly where to create instance variable states and it is being used in the main function. We can do in any function expect viterbi of HMM class? Thanks, Ranjeet