StevenJLarge / hmm

Code for implementation of hidden markov models
MIT License
1 stars 0 forks source link

Internal Optimization of EM Optimizer #43

Closed StevenJLarge closed 9 months ago

StevenJLarge commented 1 year ago

Currently (in its v1 state) the EM optimizer makes use of a number of numerical routines (for calculating $\xi$ and $\gamma$ matrices) in each iteration. While these are vectorized, they are not yet in a state where they can be numba-optimized. For instance, np.vstack is not supported by numba, so that would need to be refactored to a np.repeat call, also I haven't thought much about whether we need to worry/factor in contiguous array memory allocation (i.e. is there any matrix multiplication explicitly.) This should be done to speed up the BW algorithm iterations.