Skip to content

Commit

Permalink
Small update to notebook 5
Browse files Browse the repository at this point in the history
  • Loading branch information
momchilmm committed Nov 8, 2020
1 parent 18bb77d commit 04c145f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/05_Plane_wave_expansion_with_autograd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
"source": [
"## Optimize the waveguide\n",
"\n",
"For the optimization, we will use the autograd function `obj_and_grad`, which returns the value of the objective function and the gradients simultaneously. Note that `legume` comes with a `Minimize` class that implements either `adam` or `lbfgs` minimization, which is what we are going to use. Of course, any external optimization function can also be combined with the gradient computation from `legume` (in fact, the `lbfgs` minimizer is a wrapper around the `SciPy` implementation). "
"For the optimization, we will use the `Minimize` class provided with `legume`, which implements either `adam` or `lbfgs` minimization. The `lbfgs` minimizer is just a wrapper around the `SciPy` implementation, and any external optimization function can also be combined with the gradient computation from `legume`. Note that `autograd` provides both a `grad` function as used above, and an `obj_and_grad` function that returns simultaneously the value and the gradient of the objective function, which can be useful for custom optimization functions."
]
},
{
Expand Down Expand Up @@ -447,7 +447,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 04c145f

Please sign in to comment.