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

Adding NN evaluation for FV3 #522

Open
tse-chunchen opened this issue Apr 19, 2022 · 0 comments
Open

Adding NN evaluation for FV3 #522

tse-chunchen opened this issue Apr 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tse-chunchen
Copy link

tse-chunchen commented Apr 19, 2022

Description

To facilitate neural network (NN) based correction to the state variables, I would like to introduce subroutines that define and evaluate a typical feedforward NN and call it from the model (similar to https://github.com/AlexBelochitski-NOAA/fv3atm_full_physics_nn_emulator/).

Solution

  • Current plan is to implement it in a similar way as the IAU update since they are both adding an extra term to the RHS of the tendency equations.
  • The architecture and the trained weights and biases will be read in from an ascii file. This design is to ensure maximal compatibility with different machine learning packages with minimal effort.
  • There will mainly be two subroutines: “init_NN” (initializing the NN) and “eval_NN” (evaluation of the NN) with flexibility of number of layers, neurons, etc. Both will be placed in the “atmos_cubed_sphere/tools/” (the same as the “fv_iau_mod.F90”).
  • The two will be called in the “atmos_model.F90”:
    • The “init_NN” will be called in subroutine: atmos_model_init
    • The “eval_NN” together with the preparation of the input data will be called after the physics update in subroutine: “update_atmos_radiation_physics”
    • The output will then update the state variables through the API “atmosphere_state_update” of “atmosphere.mod”

Alternatives

No.

Testing:

No. Just raising the issue for now.

Dependent PRs:

ufs-community/ufs-weather-model/issues/#1184
NOAA-GFDL/GFDL_atmos_cubed_sphere/issues/#186
NOAA-EMC/fv3atm/issues/#522

@pjpegion @frolovsa @AlexBelochitski-NOAA

@tse-chunchen tse-chunchen added the enhancement New feature or request label Apr 19, 2022
SamuelTrahanNOAA pushed a commit to SamuelTrahanNOAA/fv3atm that referenced this issue Jun 13, 2022
* implement unity normalization in CMEPS for coupled and datm applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant