Skip to content
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

Add uq module (with trainer) #308

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ziqi-ma
Copy link

@ziqi-ma ziqi-ma commented Mar 15, 2024

Initial version of integrating uq module. Added:

  • models/uqno.py which is the main uqno object
  • examples/UQNO_Darcy.py which is a demonstration of how uqno should be used e2e
  • examples/utils.py which is helper function for UQNO_Darcy.py (this can be reorganized to a separate folder)
  • losses/data_losses.py PointwiseQuantileLoss which is needed to train pre-calibration residual NO
  • changes to the layers/spectral_convolution and fno_block which is unfortunate - I ran my code based on an earlier version of the main repo - tried merging with the current one and the current version is the minimal discrepancy I can get.
  • training/trainer.py train_pointwise_err for training with pointwise quantile loss

Darcy data (defined in download_darcy_data in examples/utils.py L90):
"https://drive.google.com/uc?export=download&id=1uQv1geg3HTZjtCS0reh9TMW0EBvvm7xm" (a)
"https://drive.google.com/uc?export=download&id=1zIo5wVhvVJOaufXlJ8uDVpXm1qncqseL" (u)

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.

None yet

1 participant