Skip to content

Commit

Permalink
added config for bounding
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieloks committed Aug 28, 2024
1 parent 1ad0032 commit 3bf034b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/anemoi/training/config/data/zarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ diagnostic:
normalizer:
default: "mean-std"
min-max:
# std:
# - "tp"
# - "cp"
max:
- "sdor"
- "slor"
Expand All @@ -49,6 +52,10 @@ normalizer:
imputer:
default: "none"

# # For the fraction activation to be robust, the fraction variable should
# # be normalised with the standard deviation of the total variable
# fraction_normalisation: [["tp","cp"]] #first variable is the total variable

# processors including imputers and normalizers are applied in order of definition
processors:
# example_imputer:
Expand Down
10 changes: 10 additions & 0 deletions src/anemoi/training/config/training/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ metrics:
- u_850
- v_850

# Bounding configuration
# bounding_strategies: #order in which these variables are defined matters!
# tp:
# _target_: anemoi.models.models.bounding.ReluBoundingStrategy #[0, infinity)
# cp:
# _target_: anemoi.models.models.bounding.FractionHardtanhBoundingStrategy # fraction of tp
# min_val: 0
# max_val: 1
# total_var: tp

pressure_level_scaler:
_target_: anemoi.training.data.scaling.ReluPressureLevelScaler
minimum: 0.2
Expand Down

0 comments on commit 3bf034b

Please sign in to comment.