Skip to content

Commit 66b1aca

Browse files
committed
Add more corrections to exploratory plots
1 parent 8ea3eb9 commit 66b1aca

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

detclim/notebooks/Plot_Bootstrap_Results.ipynb

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"plt.style.use(\"default\")\n",
2424
"REJ_THR = {\n",
2525
" 0.01: {\"ks\": 6, \"cvm\": 9, \"mw\": 9, \"es\": 8},\n",
26-
" 0.05: {\"ks\": 11, \"cvm\": 16, \"mw\": 16, \"es\": 15},\n",
26+
" 0.05: {\"ks\": 11, \"cvm\": 16, \"mw\": 16, \"wsr\": 15},\n",
2727
"}"
2828
]
2929
},
@@ -78,8 +78,8 @@
7878
"\n",
7979
" for ixp, _param in enumerate(params):\n",
8080
" _ntests = pbr.ntests(case_data[_param], idx)[stest]\n",
81-
" # for ixm, _method in enumerate(case_data[_param][0].methods):\n",
82-
" for ixm, _method in enumerate([\"uncor\", \"fdr_bh\"]):\n",
81+
" for ixm, _method in enumerate(case_data[_param][0].methods):\n",
82+
" # for ixm, _method in enumerate([\"uncor\", \"fdr_bh\"]):\n",
8383
" _method_hum = f\"{case_data[_param][0].methods[_method]} - {case_data[_param][0].stests[stest]}\"\n",
8484
" axis[ixp].semilogy(\n",
8585
" _ntests[\"pct_change\"],\n",
@@ -262,6 +262,14 @@
262262
" )"
263263
]
264264
},
265+
{
266+
"cell_type": "code",
267+
"execution_count": null,
268+
"id": "daa0cd55",
269+
"metadata": {},
270+
"outputs": [],
271+
"source": []
272+
},
265273
{
266274
"cell_type": "code",
267275
"execution_count": null,
@@ -295,7 +303,7 @@
295303
"metadata": {},
296304
"outputs": [],
297305
"source": [
298-
"lstyle = {\"uncor\": \"-\", \"fdr_bh\": \"--\"}\n",
306+
"lstyle = {\"uncor\": \"-\", \"fdr_bh\": \"--\", \"fdr_by\": \"-.\", \"bonferroni\": \":\"}\n",
299307
"ornl_colours = {\n",
300308
" \"green\": \"#007833\",\n",
301309
" \"bgreen\": \"#84b641\",\n",
@@ -308,20 +316,21 @@
308316
"colors = {\n",
309317
" \"ks\": ornl_colours[\"green\"],\n",
310318
" \"cvm\": ornl_colours[\"blue\"],\n",
311-
" \"es\": ornl_colours[\"red\"],\n",
319+
" \"wsr\": ornl_colours[\"red\"],\n",
312320
" \"mw\": ornl_colours[\"orange\"]\n",
313321
"}\n",
314322
"markers = {\n",
315323
" \"ks\": \"o\",\n",
316324
" \"cvm\": \".\",\n",
317-
" \"es\": \"H\",\n",
325+
" \"wsr\": \"H\",\n",
318326
" \"mw\": \"x\"\n",
319327
"}\n",
320328
"fig, axes = plt.subplots(1, 3, figsize=(15, 4), sharey=True)\n",
321329
"\n",
322330
"for idx, param in enumerate(nfailed):\n",
323331
" for stest in nfailed[param]:\n",
324-
" for method in [\"uncor\", \"fdr_bh\"]:\n",
332+
" # for method in [\"uncor\", \"fdr_bh\"]:\n",
333+
" for method in nfailed[param][stest]:\n",
325334
" axes[idx].semilogy(\n",
326335
" pct_change[param],\n",
327336
" nfailed[param][stest][method],\n",
@@ -392,6 +401,8 @@
392401
"\n",
393402
"for idx, param in enumerate(nfailed):\n",
394403
" for stest in nfailed[param]:\n",
404+
" if stest == \"wsr\":\n",
405+
" continue\n",
395406
" # for method in nfailed[param][stest]:\n",
396407
" for method in [\"fdr_bh\",]:\n",
397408
" if method != \"uncor\":\n",
@@ -400,7 +411,7 @@
400411
" (\n",
401412
" np.array(nfailed[param][stest][method]) -\n",
402413
" np.array(nfailed[param][stest][\"uncor\"])\n",
403-
" ) / niter,\n",
414+
" ), # / np.array(nfailed[param][stest][\"uncor\"]),\n",
404415
" color=colors[stest],\n",
405416
" label=f\"{stest} - {method}\",\n",
406417
" ls=lstyle[method],\n",

0 commit comments

Comments
 (0)