You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d6adc8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: examples/Example Notebook.ipynb
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -661,6 +661,33 @@
661
661
" )"
662
662
]
663
663
},
664
+
{
665
+
"cell_type": "markdown",
666
+
"id": "c82252ba-8982-476f-91ec-c53ae21d1a8b",
667
+
"metadata": {},
668
+
"source": [
669
+
"One can alternatively provide initialisation or 'warmstart' points to BOBE instead of using Cobaya initialisation samples. This is particularly useful for cases such as nested cosmological models but one must be careful to ensure the init_train_y are valid for the new likelihood"
670
+
]
671
+
},
672
+
{
673
+
"cell_type": "code",
674
+
"execution_count": null,
675
+
"id": "c01795ae-c26a-4b9b-804c-5217f867357a",
676
+
"metadata": {},
677
+
"outputs": [],
678
+
"source": [
679
+
"sampler = BOBE(\n",
680
+
" loglikelihood='path/to/cobaya_input.yaml',\n",
681
+
" likelihood_name='CobayaLikelihood',\n",
682
+
" n_sobol_init=4,\n",
683
+
" init_train_x=init_train_x,\n",
684
+
" init_train_y=init_train_y,\n",
685
+
" likelihood_name='quickstart_cobaya_example', # name for output files\n",
686
+
" save_dir='./results',\n",
687
+
" use_clf=True # recommended to enable classifiers for cosmological examples where likelihood can sometimes return -inf values\n",
0 commit comments