def plot_log_likelihood(lds_times, lds_lls,
                        hmm_times, hmm_lls,
                        figname="lds_vs_hmm_ll.pdf"):
    # Plot the log likelihood
    plt.figure(figsize=(3,3.2))
    plt.plot(hmm_lls, lw=2, color=colors[1], label="HMM")
    plt.plot(lds_lls, lw=2, color=colors[0], label="LDS")

    plt.legend(loc="lower right")
    plt.xlabel('Iteration')
    plt.ylabel("Log Likelihood")
    plt.title("Synthetic. D=%d. K=%d" % (D,K))
    # plt.savefig(os.path.join("results", "ap", figname))

    plt.tight_layout()
dataset/ETHPy150Open HIPS/pgmult/examples/multinomial_lds_2.py/plot_log_likelihood/original