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
18 changes: 13 additions & 5 deletions notebooks/chapter_optional/tutorial_searches.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
" )\n",
" _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n",
"\n",
"_setup_colab.setup(\"howtolens\")"
"_setup_colab.setup(\"autolens\")"
]
},
{
Expand Down Expand Up @@ -366,10 +366,18 @@
"likelihood. They want to find the model that maximizes the log likelihood, with no regard for the errors, thus not\n",
"wasting time mapping out in intricate detail every facet of parameter space.\n",
"\n",
"PyAutoFit supports the LBFGS optimizer (from scipy), which can be used as an alternative to nested sampling when\n",
"only the maximum likelihood model is needed. However, optimizers generally need a good starting point to work well,\n",
"and in our experience the parameter spaces fitted by lens models are often too complex for optimizers without careful\n",
"setup of initialization priors.\n",
"PyAutoFit supports a number of optimizers, which can be used as an alternative to nested sampling when only the\n",
"maximum likelihood model is needed. These include `LBFGS` and `BFGS` (from scipy), which descend the likelihood from a\n",
"single starting point. A single-start optimizer generally needs a good starting point to work well, and in our\n",
"experience the parameter spaces fitted by lens models are often too complex for it without careful setup of initialization\n",
"priors.\n",
"\n",
"PyAutoFit also supports multi-start gradient optimizers (`MultiStartProdigy`, `MultiStartAdam`, `MultiStartADABelief`\n",
"and `MultiStartLion`), which use JAX to launch many optimizations from starting points spread across parameter space\n",
"in parallel and return the best one. This makes them far more robust to complex parameter spaces, and\n",
"`MultiStartProdigy` is the optimizer used by many of the `start_here.py` examples in the `autolens_workspace`. Like any optimizer, they\n",
"return only the best-fit model with no errors. The `autolens_workspace` script `scripts/guides/modeling/searches.py` describes\n",
"every search, including these optimizers, in detail.\n",
"\n",
"__MCMC__\n",
"\n",
Expand Down
16 changes: 12 additions & 4 deletions scripts/chapter_optional/tutorial_searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,18 @@
likelihood. They want to find the model that maximizes the log likelihood, with no regard for the errors, thus not
wasting time mapping out in intricate detail every facet of parameter space.

PyAutoFit supports the LBFGS optimizer (from scipy), which can be used as an alternative to nested sampling when
only the maximum likelihood model is needed. However, optimizers generally need a good starting point to work well,
and in our experience the parameter spaces fitted by lens models are often too complex for optimizers without careful
setup of initialization priors.
PyAutoFit supports a number of optimizers, which can be used as an alternative to nested sampling when only the
maximum likelihood model is needed. These include `LBFGS` and `BFGS` (from scipy), which descend the likelihood from a
single starting point. A single-start optimizer generally needs a good starting point to work well, and in our
experience the parameter spaces fitted by lens models are often too complex for it without careful setup of initialization
priors.

PyAutoFit also supports multi-start gradient optimizers (`MultiStartProdigy`, `MultiStartAdam`, `MultiStartADABelief`
and `MultiStartLion`), which use JAX to launch many optimizations from starting points spread across parameter space
in parallel and return the best one. This makes them far more robust to complex parameter spaces, and
`MultiStartProdigy` is the optimizer used by many of the `start_here.py` examples in the `autolens_workspace`. Like any optimizer, they
return only the best-fit model with no errors. The `autolens_workspace` script `scripts/guides/modeling/searches.py` describes
every search, including these optimizers, in detail.

__MCMC__

Expand Down
5 changes: 4 additions & 1 deletion workspace_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,10 @@
"Optimizers",
"MCMC"
],
"cross_refs": [],
"cross_refs": [
"scripts/guides/modeling/searches.py",
"start_here.py"
],
"notebook": "notebooks/chapter_optional/tutorial_searches.ipynb",
"path": "scripts/chapter_optional/tutorial_searches.py",
"summary": "Up to now, we've always used the non-linear search Nautilus and not considered the input parameters that control its sampling. In this tutorial, we'll consider how we can change these setting to balance finding the global maxima solution with fast run time.",
Expand Down
Loading