In [1]:
import os, sys
sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))

General KDE


In [2]:
%matplotlib inline
import matplotlib.pyplot as plt
import open_cp.scripted
import open_cp.scripted.analysis as analysis

In [3]:
all_betas = analysis.hit_counts_to_beta("kde_opt.csv")

In [5]:
fig, axes = plt.subplots(ncols=2, figsize=(16,7))
analysis.plot_betas(all_betas, axes[0], range(1,21))
axes[0].legend([])
analysis.plot_betas(all_betas, axes[1], range(1,21), plot_sds=False)
axes[1].legend([])


Out[5]:
<matplotlib.legend.Legend at 0x7f9d620f4b70>

In [ ]: