Skip to content

American Put Option example, Extension of #2056#2059

Open
echen5503 wants to merge 8 commits intolululxvi:masterfrom
echen5503:feature-two
Open

American Put Option example, Extension of #2056#2059
echen5503 wants to merge 8 commits intolululxvi:masterfrom
echen5503:feature-two

Conversation

@echen5503
Copy link
Copy Markdown
Contributor

Extension of #2056. Implementation of PINN for american put options, achieving a strong fit.
image

Comment thread examples/pinn_forward/american_put.py Outdated
@@ -0,0 +1,149 @@
import deepxde as dde
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow the format of current examples. Docstring should be at the beginnning with the information of supported backends

@echen5503
Copy link
Copy Markdown
Contributor Author

Added compatibility fix and changed docstring

Comment thread docs/demos/pinn_forward/american.put.rst
Comment thread docs/demos/pinn_forward/american.put.rst
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great example, thank you! I have two minor suggestions before merge:
Style: To keep our documentation consistent with the rest of the library's examples, could you please remove the bold formatting (** text **) from the explanations?
Context: There is quite a bit of financial jargon here (e.g., strike price, volatility, early exercise). Since DeepXDE's primary audience comes from a general applied mathematics and computational physics background, could you add a brief sentence or two explaining these terms?

@echen5503
Copy link
Copy Markdown
Contributor Author

comments addressed, thank you for review

Copy link
Copy Markdown

@SimingShan SimingShan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is now appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants