28 lines
708 B
Python
28 lines
708 B
Python
from plot import qtplot
|
|
import json
|
|
import math as ma
|
|
import numpy as np
|
|
|
|
path='/cloud/Public/_data/neuropercolation/4lay/cons=27-knight_steps=1000100_diares/dim=09/batch=0/samedist_varmaxpha_causal_roll0.031/'
|
|
eps_sp=np.linspace(0.01,0.2,20)
|
|
eps_ep=eps_sp[3:4]
|
|
|
|
extremes=200
|
|
strength=200
|
|
|
|
savepath=path+f'extremes={extremes}_bootstrength={strength}/'
|
|
|
|
boots=[]
|
|
for eps in eps_ep:
|
|
|
|
with open(savepath+f'eps={eps:.3f}_dt=60_bootstrap.txt','r') as f:
|
|
|
|
confs=list(zip(*json.load(f)))[1]
|
|
ps=[1-conf for conf in confs]
|
|
boots.append(ps)
|
|
|
|
|
|
|
|
|
|
|
|
qtplot("Bootstrapping confidence",[range(61)]*len(eps_sp),boots,[f'{eps}' for eps in eps_sp],y_tag='p-value',y_log=False) |