Skip to content

Commit 772d86b

Browse files
authored
doc: ignore simulation failures in spline example (again) (#2890)
Missed two places in #2876. Also reduce the number of starts, since we don't need to account for the high failure rate anymore.
1 parent a5abe21 commit 772d86b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

doc/examples/example_splines_swameye/ExampleSplinesSwameye2003.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"outputs": [],
7373
"source": [
7474
"# Number of multi-starts for MAP estimation\n",
75-
"n_starts = 150\n",
75+
"n_starts = 50\n",
7676
"# n_starts = 0 # when loading results"
7777
]
7878
},
@@ -372,7 +372,10 @@
372372
"# Import PEtab problem into pyPESTO\n",
373373
"pypesto_problem = pypesto.petab.PetabImporter(\n",
374374
" petab_problem, model_name=name\n",
375-
").create_problem()\n",
375+
").create_problem(\n",
376+
" # re-sample optimization startpoints in case of simulation errors\n",
377+
" startpoint_kwargs={\"check_fval\": True, \"check_grad\": True}\n",
378+
")\n",
376379
"\n",
377380
"# Increase maximum number of steps for AMICI\n",
378381
"pypesto_problem.objective.amici_solver.setMaxSteps(10**5)"
@@ -1743,7 +1746,10 @@
17431746
"# Import PEtab problem into pyPESTO\n",
17441747
"pypesto_problem = pypesto.petab.PetabImporter(\n",
17451748
" petab_problem, model_name=name\n",
1746-
").create_problem()"
1749+
").create_problem(\n",
1750+
" # re-sample optimization startpoints in case of simulation errors\n",
1751+
" startpoint_kwargs={\"check_fval\": True, \"check_grad\": True}\n",
1752+
")"
17471753
]
17481754
},
17491755
{

0 commit comments

Comments
 (0)