Hidden Markov Model Learning - Intelligent User Interfaces homework assignment