diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-04-11 13:56:39 -0500 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-04-11 13:56:39 -0500 |
| commit | bc28b9e2a31666839e837e6f0e49161713527085 (patch) | |
| tree | eef2f71d6fcc4b4bd60b71b744b33c2d94622293 /mnrun | |
| parent | 326ff3bacfe0c2925afde031aa6287ebe0af0b33 (diff) | |
| download | GolemFlavor-bc28b9e2a31666839e837e6f0e49161713527085.tar.gz GolemFlavor-bc28b9e2a31666839e837e6f0e49161713527085.zip | |
GOLEMFIT takes in Haar measure params, fix. Add Bayes Factor calculation
Diffstat (limited to 'mnrun')
| -rw-r--r-- | mnrun/plot.py | 23 | ||||
| -rw-r--r-- | mnrun/test.png | bin | 0 -> 64972 bytes |
2 files changed, 23 insertions, 0 deletions
diff --git a/mnrun/plot.py b/mnrun/plot.py new file mode 100644 index 0000000..e010257 --- /dev/null +++ b/mnrun/plot.py @@ -0,0 +1,23 @@ +import numpy as np +import matplotlib as mpl +mpl.use('Agg') +from matplotlib import pyplot as plt +from matplotlib import rc + +rc('text', usetex=False) +rc('font', **{'family':'serif', 'serif':['Computer Modern'], 'size':18}) + +arr = np.load('fr_evidence_test_050_050_000_0100_sfr_033_066_000_DIM3_single_scale.npy') + +print arr +ev = arr.T[1] +null = ev[0] +print null +re_z = -(ev - null) +print re_z + +plt.plot(arr.T[0], re_z) +plt.xlabel(r'${\rm log}_{10} \Lambda$') +plt.ylabel(r'Bayes Factor') +# plt.axhline(np.power(10, 1.5), color='grey', linestyle='-', alpha=0.4) +plt.savefig('./test.png', bbox_inches='tight', dpi=150) diff --git a/mnrun/test.png b/mnrun/test.png Binary files differnew file mode 100644 index 0000000..3f68e17 --- /dev/null +++ b/mnrun/test.png |
