Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/readme_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@
"\n",
" gen_specs = GenSpecs(\n",
" gen_f=uniform_random_sample,\n",
" outputs=[(\"x\", float, (2,))],\n",
" outputs=[(\"x\", float, 2)],\n",
" user={\n",
" \"gen_batch_size\": 500,\n",
" \"gen_batch_size\": 50,\n",
" \"lb\": np.array([-3, -2]),\n",
" \"ub\": np.array([3, 2]),\n",
" },\n",
" )\n",
"\n",
" exit_criteria = ExitCriteria(sim_max=101)\n",
" exit_criteria = ExitCriteria(sim_max=100)\n",
"\n",
" sampling = Ensemble(\n",
" libE_specs=libE_specs,\n",
Expand Down
12 changes: 9 additions & 3 deletions examples/tutorials/simple_sine/sine_tutorial_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"metadata": {},
"outputs": [],
"source": [
"pip install libensemble"
"!pip install libensemble"
]
},
{
Expand Down Expand Up @@ -155,7 +155,9 @@
"outputs": [],
"source": [
"import numpy as np\n",
"from pprint import pprint\n",
"\n",
"# If importing sim and gen from files\n",
"# from sine_gen import gen_random_sample\n",
"# from sine_sim import sim_find_sine\n",
"\n",
Expand Down Expand Up @@ -201,8 +203,12 @@
"metadata": {},
"outputs": [],
"source": [
"print([i for i in H.dtype.fields])\n",
"print(H[:16])"
"# See first 16 results\n",
"pprint(H[[\"sim_id\", \"x\", \"y\"]][:16])\n",
"\n",
"# To see all fields of H\n",
"# print([i for i in H.dtype.fields])\n",
"# print(H[:16])"
]
},
{
Expand Down