Does anyone know how to force the confusion matrix plot to always have the same Y-scale? For exercise 3.1-3.2 I can't really see better results with the extended feature because the confusion matrix plot is plotted in different scale.
This is the code I used to produce the confusion matrix plot:
import lxmls.sequences.confusion_matrix as cm
import matplotlib.pyplot as plt
confusion_matrix = cm.build_confusion_matrix(test_seq.seq_list, pred_test, len(corpus.tag_dict), crf_online.get_num_states())
cm.plot_confusion_bar_graph(confusion_matrix, corpus.tag_dict, xrange(crf_online.get_num_states()), 'Confusion matrix')