R package of manual implementation of Baum-Welch algorithm
Run the following command from RStudio console
devtools::install_github('arr15334/BaumWelch')
And then load the library using
library(baumw)
hmm = BaumWelch(visible, transitionMatrix, emissionMatrix, initial_distribution, iterations)
visible
is a vector of the emitted symbolstransitionMatrix
is the first estimation of the transition matrix A. This can be randomly initialized if there is no prior informationemissionMatrix
is the first estimation of the emission matrix A. This can be randomly initialized if there is no prior informationinitial_distribution
is the first estimation of the initial distribution pi.iterations
is the number of maximum iterations that the algorithm should perform.
This will return a list containing the estimations of the transition and emission matrices.