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

activation functions added for bounded outputs #14

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from

Conversation

gabrieloks
Copy link

@gabrieloks gabrieloks commented Aug 1, 2024

This PR is related to the open issue #13 and the aifs-mono PR https://github.com/ecmwf-lab/aifs-mono/pull/224.

The basic idea behind this PR is to implement bounding strategies for specific variables, chosen by the user, via the usage of activation functions. One evident example the total precipitation accumulation variable, which is not currently bounded, therefore prone to negative value predictions.

Closes #13

@gabrieloks gabrieloks added the enhancement New feature or request label Aug 1, 2024
@FussyDuck
Copy link

FussyDuck commented Aug 1, 2024

CLA assistant check
All committers have signed the CLA.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.83%. Comparing base (af4d9dc) to head (929732d).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #14   +/-   ##
========================================
  Coverage    99.82%   99.83%           
========================================
  Files           21       22    +1     
  Lines         1158     1219   +61     
========================================
+ Hits          1156     1217   +61     
  Misses           2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -47,8 +63,10 @@ def __init__(
self.data_indices = data_indices

def _process_config(self, config):
Copy link
Member

Choose a reason for hiding this comment

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

Can you put a comment to explain why these keys are handled specially?

@mchantry
Copy link
Member

Great work on this, thanks.

@mchantry mchantry added the ATS approved Approved by ATS label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ATS approved Approved by ATS enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activation functions for bounding the output of the model
5 participants