Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

added config for bounding #10

Merged
merged 26 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3bf034b
added config for bounding
gabrieloks Aug 2, 2024
8b86e78
refactor: move bounding config to model
JesperDramsch Aug 28, 2024
b52b06c
fixed typo in bounding functions config
gabrieloks Aug 30, 2024
81d450c
docs: changelog
JesperDramsch Sep 23, 2024
09bd341
Merge branch 'develop' into activation_functions_config
JesperDramsch Sep 23, 2024
390ae37
Update zarr.yaml
gabrieloks Sep 27, 2024
3da5adc
Update zarr.yaml
gabrieloks Sep 27, 2024
a085ad5
Update gnn.yaml
gabrieloks Sep 27, 2024
2fd627e
Update graphtransformer.yaml
gabrieloks Sep 27, 2024
9250c0e
Update transformer.yaml
gabrieloks Sep 27, 2024
ac232b2
Merge branch 'develop' into activation_functions_config
HCookie Oct 1, 2024
f6a5fe5
Merge branch 'develop' into activation_functions_config
gabrieloks Oct 28, 2024
f81ee09
Update gnn.yaml
gabrieloks Oct 28, 2024
b871132
Update graphtransformer.yaml
gabrieloks Oct 28, 2024
a29bf91
Update transformer.yaml
gabrieloks Oct 28, 2024
8135bd1
Update transformer.yaml
gabrieloks Oct 28, 2024
d168212
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 28, 2024
125c6d1
Update graphtransformer.yaml
gabrieloks Oct 28, 2024
7028c9d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 28, 2024
958941c
Update gnn.yaml
gabrieloks Oct 28, 2024
6aac754
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 28, 2024
5b39ab4
Update zarr.yaml
gabrieloks Oct 28, 2024
b686937
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 28, 2024
70ae430
Update zarr.yaml
gabrieloks Oct 28, 2024
87edfc5
Merge branch 'develop' into activation_functions_config
gabrieloks Oct 29, 2024
1627534
Merge branch 'develop' into activation_functions_config
gabrieloks Oct 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Keep it human-readable, your future self will thank you!

- Introduction of remapper to anemoi-models leads to changes in the data indices. Some preprocessors cannot be applied in-place anymore.

- Variable Bounding as configurable model layers [#13](https://github.com/ecmwf/anemoi-models/issues/13)

#### Functionality

- Enable the callback for plotting a histogram for variables containing NaNs
Expand Down
5 changes: 5 additions & 0 deletions src/anemoi/training/config/data/zarr.yaml
HCookie marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ remapped:

normalizer:
default: "mean-std"
remap:
cp: tp
mchantry marked this conversation as resolved.
Show resolved Hide resolved
std:
- "tp"
- "cp"
min-max:
max:
- "sdor"
Expand Down
12 changes: 12 additions & 0 deletions src/anemoi/training/config/model/gnn.yaml
mchantry marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,15 @@ attributes:
nodes: []

node_loss_weight: area_weight

# Bounding configuration
bounding: #These are applied in order
- _target_: anemoi.models.layers.bounding.ReluBounding #[0, infinity)
variables:
- tp
- _target_: anemoi.models.layers.bounding.FractionBounding # fraction of tp
variables:
- cp
min_val: 0
max_val: 1
total_var: tp
12 changes: 12 additions & 0 deletions src/anemoi/training/config/model/graphtransformer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,15 @@ attributes:
nodes: []

node_loss_weight: area_weight

# Bounding configuration
bounding: #These are applied in order
- _target_: anemoi.models.layers.bounding.ReluBounding #[0, infinity)
variables:
- tp
- _target_: anemoi.models.layers.bounding.FractionBounding # fraction of tp
variables:
- cp
min_val: 0
max_val: 1
total_var: tp
12 changes: 12 additions & 0 deletions src/anemoi/training/config/model/transformer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,15 @@ attributes:
nodes: []

node_loss_weight: area_weight

# Bounding configuration
bounding: #These are applied in order
- _target_: anemoi.models.layers.bounding.ReluBounding #[0, infinity)
variables:
- tp
- _target_: anemoi.models.layers.bounding.FractionBounding # fraction of tp
variables:
- cp
min_val: 0
max_val: 1
total_var: tp
Loading