File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
doc/examples/example_splines_swameye Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 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 },
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)"
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 {
You can’t perform that action at this time.
0 commit comments