i have multiple sequences for each of two states. I'd like to train a HMM with these to predict the state for unkown sequences.
Here is an example for this problem:
states <- c("good", "bad")
good_obs<- list(
c("a","b","c")
,c("a","b","c","c")
,c("a","c","c")
)
bad_obs<- list(
c("d","b","c")
,c("b","c","c","a")
,c("c","c","a")
,c("c","c","a","a")
)
unknown_obs<- list(
c("d","b","c")
,c("c","a")
,c("c","c","c","a")
,c("c","a","a")
)
so what would be the way to use hmm <- initHMM(States, Symbols) and baumWelch(hmm, observation)?