Hidden Markov Models, Statistics, Data Science, Machine Learning, Editors Pick.
observation sequence of OK - Fail - Perfect # split our data into training and test sets (50/50 split) X_train = trials[:trials.shape[0] // 2] X_test = trials[trials.shape[0] // 2:] model.fit(X_train) # the exam had 3 trials and your dog had the following score: OK, Fail, Perfect (1, 0 , 2)