Skip to content

Commit 3934b49

Browse files
committed
create folder within doc
1 parent 9f484ef commit 3934b49

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/inverse_problems/petab_ode_param_fitting.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,25 +440,25 @@ And one additional optional argument:
440440

441441
Because `calibrate_model_multistart` handles initial guess sampling, unlike for `calibrate_model`, no initial guess has to be provided.
442442

443-
Here, we fit parameters through 10 independent optimisation runs, using QuasiMonteCarlo's `SobolSample` method, and save the result to the OptimizationRuns folder:
443+
Here, we fit parameters through 10 independent optimisation runs, using QuasiMonteCarlo's `SobolSample` method, and save the result to the OptimisationRuns folder:
444444
```@example petab1
445445
using Optim
446446
using QuasiMonteCarlo
447-
res_ms = calibrate_model_multistart(petab_problem, IPNewton(), 10, "OptimizationRuns"; sampling_method=QuasiMonteCarlo.SobolSample())
448-
res_ms = calibrate_model_multistart(petab_problem, IPNewton(), 10, "OptimizationRuns"; sampling_method=QuasiMonteCarlo.SobolSample()) # hide
447+
mkdir("OptimisationRuns") # hide
448+
res_ms = calibrate_model_multistart(petab_problem, IPNewton(), 10, "OptimisationRuns"; sampling_method=QuasiMonteCarlo.SobolSample())
449449
nothing # hide
450450
```
451451
The best result across all runs can still be retrieved using `get_ps(res_ms, petab_problem)`, with the results of the individual runs being stored in the `res_ms.runs` field.
452452

453453
To load the result in a later session, we can call:
454454
```@example petab1
455-
res_ms = PEtabMultistartOptimisationResult("OptimizationRuns")
455+
res_ms = PEtabMultistartOptimisationResult("OptimisationRuns")
456456
nothing # hide
457457
```
458-
where `"OptimizationRuns"` is the name of the save directory (specified in `calibrate_model_multistart`). If the OptimizationRuns folder contains the output from several runs, we can designate which to load using the `which_run` argument. Here we load the second run to be saved in that folder:
458+
where `"OptimisationRuns"` is the name of the save directory (specified in `calibrate_model_multistart`). If the OptimisationRuns folder contains the output from several runs, we can designate which to load using the `which_run` argument. Here we load the second run to be saved in that folder:
459459
```@example petab1
460-
res_ms = PEtabMultistartOptimisationResult("OptimizationRuns"; which_run="2")
461-
foreach(f -> rm(joinpath("OptimizationRuns", f), recursive=true), readdir("OptimizationRuns")) # hide
460+
res_ms = PEtabMultistartOptimisationResult("OptimisationRuns"; which_run="2")
461+
rm("OptimisationRuns", recursive=true) # hide
462462
nothing # hide
463463
```
464464
By default, `which_run` loads the first run saved to that directory.

0 commit comments

Comments
 (0)