ai2cm / fv3net

explore the FV3 data for parameterization
MIT License
16 stars 3 forks source link

Add output limiter option to autoencoder #2223

Closed AnnaKwa closed 1 year ago

AnnaKwa commented 1 year ago

When testing the effect of autoencoder roundtrip errors in online prognostic runs, some runs crash due to specific humidity going negative. This PR adds the output_limiter_config option to the DenseAutoencoder, where the final layer in the model limits the output range. Similar to the dense model training, the loss is calculated on the limited outputs.

Added public API:

Coverage reports (updated automatically):