Machine Learning, NLP, Artificial Intelligence, Machine Intelligence, Tutorial.
['Red','Green','Red'] # initial state probability distribution (our priors) initial_probs = {'A':1.0,'B':0.0} # transition probabilities transition_probs = {'A|A':0,'A|B':1,'B|A':1,'B|B':0} # emission probabilities emission_probs = {'Red|A':1,'Green|A':0,'Red|B':0.25,'Green|B':0.75} # Generate list