-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PyTorch surrogate example #547
Update PyTorch surrogate example #547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks that's awesome!
Do you want to:
- update the
.. figure::
URLs, - remove the 9 stage files?
Yes, I just updated the figures and cleared out the 9 stage files |
for more information, see https://pre-commit.ci
7164318
to
3e0c218
Compare
for more information, see https://pre-commit.ci
…g/impactx into topic-update-surrogate-example
for more information, see https://pre-commit.ci
…g/impactx into topic-update-surrogate-example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks excellent and like it has all the updates we added for device code in the revision 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 🚀 ✨
This PR updates the PyTorch surrogate model example from PR #482 to reflect work done for the PASC revision.
It also improves on the original presentation.
New figures here:
![schema_15_stages](https://private-user-images.githubusercontent.com/10621396/312266448-a51613b6-7ea0-4f5f-b555-66b3db39fefa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzUxNDksIm5iZiI6MTczOTQzNDg0OSwicGF0aCI6Ii8xMDYyMTM5Ni8zMTIyNjY0NDgtYTUxNjEzYjYtN2VhMC00ZjVmLWI1NTUtNjZiM2RiMzlmZWZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA4MjA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3NTIzM2IzOTBiMDlkZTAxNmM1NDk1MjhlZGUwOWU1NzgyYmI1ZDY1MDFlZTVkOWQ0Y2ZjYmMwMmU2ZWU3MzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kgtcy3H2z1pg3Q_8_8PlTahZclRIsVN7wvfi1ZjEfOs)
Schematic:
Moments:
![lpa_ml_surrogate_moments](https://private-user-images.githubusercontent.com/10621396/312265646-d96898f7-0c42-4174-836d-e696c2caf9bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzUxNDksIm5iZiI6MTczOTQzNDg0OSwicGF0aCI6Ii8xMDYyMTM5Ni8zMTIyNjU2NDYtZDk2ODk4ZjctMGM0Mi00MTc0LTgzNmQtZTY5NmMyY2FmOWJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA4MjA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyY2MwMWRlYWI2MGEyNDk5YjBmOWJkNGE0NDVkZmUzNGQ1NGYwZjhiMjVlOGE5ZmNjZWVjZWIxYWI4ZTllYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9-qXmDkoHjvALE65Dm8TvhYnTsJkHUbBnIikyB86lVg)
Initial phase space:
![initial_phase_spaces](https://private-user-images.githubusercontent.com/10621396/312265644-a27de99c-4a8c-4282-92eb-3a0eb2eeb58b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzUxNDksIm5iZiI6MTczOTQzNDg0OSwicGF0aCI6Ii8xMDYyMTM5Ni8zMTIyNjU2NDQtYTI3ZGU5OWMtNGE4Yy00MjgyLTkyZWItM2EwZWIyZWViNThiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA4MjA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1OWNiNzQ3N2U5NzkyMDMwZDE0MDAxZGUwYzQyNzE0YTRmZjYxYjBiZmIxOTM3MTFmMGRkYjk1NjZhODJlMjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3zhJj9mQh8X72V3Nl_9BW9qCU2SGLIMghmvpdufq8EE)
Final phase space:
![stage_14_phase_spaces](https://private-user-images.githubusercontent.com/10621396/312265647-fdecb577-5822-4a13-8957-9e71de82dbd9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzUxNDksIm5iZiI6MTczOTQzNDg0OSwicGF0aCI6Ii8xMDYyMTM5Ni8zMTIyNjU2NDctZmRlY2I1NzctNTgyMi00YTEzLTg5NTctOWU3MWRlODJkYmQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA4MjA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2Y2IxOTgzYzUxMjVlNmM4Nzc0YjkyMGYwMDVmYzkyMjAzYzhhM2UzMTMwNzQwYWNiN2JiN2Q0ZGQ0YzE0ZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.x7440SnOK0cKWDjnB-TsZjTP-o5uMze9c16BqAlSVNw)