Closed poypoyan closed 4 years ago
The function check() in HSMM class checks model parameters for errors before performing the main algorithms.
check()
For the HSMM (base) class, here are some of the properties to be checked:
HSMM.pi
HSMM.tmat
HSMM.dur
For Gaussian sub-class, here are the properties:
GaussianHSMM.means
GaussianHSMM.sdev
Just comment if some properties are not listed here.
Update (12-Jul-2020): Implemented for both HSMM (base class) and GaussianHSMM.
The function
check()
in HSMM class checks model parameters for errors before performing the main algorithms.For the HSMM (base) class, here are some of the properties to be checked:
HSMM.pi
,HSMM.tmat
, andHSMM.dur
should be greater than 0, because EM algorithm cannot update 0 probability.HSMM.pi
(start probabilities), numpy.shape = (n_states), and the sum should be 1.HSMM.tmat
(transition matrix), numpy.shape = (n_states, n_states), every diagonal is zero, and every row should add up to 1.HSMM.dur
(duration probabilities), numpy.shape = (n_states, n_durations), and every row should add up to 1.For Gaussian sub-class, here are the properties:
GaussianHSMM.means
, numpy.shape = (n_states).GaussianHSMM.sdev
, numpy.shape = (n_states), and all entries should be greater than 0.Just comment if some properties are not listed here.