Skip to content

Commit

Permalink
Clarify that double backprop not for elastic
Browse files Browse the repository at this point in the history
The Hessian example in the documentation was previously not clear
enough that the double backpropagation feature, which is needed
to calculate the Hessian, is not supported by the elastic propagator.
This commit adds a new parenthetical remark to make it clearer.

Closes #64 [ci skip]
  • Loading branch information
ar4 committed Oct 17, 2023
1 parent 98b7f19 commit 5386203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/example_hessian.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Hessian
=======

Deepwave supports backpropagating up to two times through the regular scalar propagator. One advantage of this is that it makes it possible to calculate Hessian matrices, which are used in optimisation methods such as `Newton-Raphson <https://en.wikipedia.org/wiki/Newton%27s_method_in_optimization>`_. I will demonstrate that in this example.
Deepwave supports backpropagating up to two times through the regular scalar propagator (but currently does not support this double backpropagation for the elastic propagator). One advantage of this is that it makes it possible to calculate Hessian matrices, which are used in optimisation methods such as `Newton-Raphson <https://en.wikipedia.org/wiki/Newton%27s_method_in_optimization>`_. I will demonstrate that in this example.

After setting up a simple two layer model with a single shot, we can calculate the gradient and Hessian of a loss function based on the output receiver data, with respect to the velocity model, using::

Expand Down

0 comments on commit 5386203

Please sign in to comment.