Skip to content

Commit

Permalink
WIP pydantic fixes stretched_config
Browse files Browse the repository at this point in the history
  • Loading branch information
VeraChristina committed Feb 21, 2025
1 parent 5c49a52 commit d35cb58
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/integration/stretched_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ defaults:
- training: default
- _self_

no_validation: True
no_validation: False


dataloader:
dataset:
Expand Down Expand Up @@ -64,12 +65,12 @@ data:
- "lsm"

training:
loss_scaling:
spatial:
_target_: anemoi.training.data.scaling.ReweightedGraphAttribute
target_nodes: ${graph.data}
scaled_attribute: area_weight # it must be a node attribute of the output nodes
cutout_weight_frac_of_global: 2
# loss_scaling:
# spatial:
# _target_: anemoi.training.data.scaling.ReweightedGraphAttribute
# target_nodes: ${graph.data}
# scaled_attribute: area_weight # it must be a node attribute of the output nodes
# cutout_weight_frac_of_global: 2
max_epochs: 2

hardware:
Expand Down Expand Up @@ -97,6 +98,7 @@ graph:
attributes:
weights:
_target_: anemoi.graphs.nodes.attributes.SphericalAreaWeights
fill_value: 0
norm: unit-max
cutout_mask:
_target_: anemoi.graphs.nodes.attributes.CutOutMask
Expand Down

0 comments on commit d35cb58

Please sign in to comment.