-
Notifications
You must be signed in to change notification settings - Fork 49
New config #1342
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
New config #1342
Conversation
| # start_date: 197901010000 | ||
| start_date: 201401010000 | ||
| end_date: 202012310000 | ||
| start_date_val: 202101010000 | ||
| end_date_val: 202201010000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we support the ISO datetime format we can use it the default config
| @@ -0,0 +1,386 @@ | |||
| # streams_directory: "./config/streams/era5_1deg/" | |||
| streams_directory: "./config/streams/era5_nppatms_synop/" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noting it could also be stream:...
| ### Model parameters ### | ||
|
|
||
| model : | ||
| embedding : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consistency: should it be assimilation_engine or embedding? the code mostly talks about the assimilation engine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have an Embedding module very soon.
| mlp_hidden_factor: 2 | ||
|
|
||
| forecast_engine: | ||
| pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could just put forecast_engine: {} or even forecast_engine:
| # blocks: 6 | ||
| # dropout_rate : 0.1 | ||
|
|
||
| decoder : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be split across streams?
decoder:
ERA5:
type: ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the stream config (where it belongs). At the moment it's a combination between some global params specified here and local params in the stream configs
| # a regex that needs to fully match the name of the modules you want to freeze | ||
| # e.g. ".*ERA5" will match any module whose name ends in ERA5\ | ||
| # encoders and decoders that exist per stream have the stream name attached at the end | ||
| freeze_modules: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventually, it makes more sense to me to move that into the description of the model:
model:
frozen: True
forecast_engine:
frozen: FalseThe current regex will not handle code refactoring with new names or packages. Longer term question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's for the moment still better to specify a list of modules to be frozen
| freeze_modules: "" | ||
|
|
||
|
|
||
| forecast : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it separate and not part of the model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be in the model
|
|
||
| ### Learning rate params ### | ||
|
|
||
| learning_rate : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not under training or learning? we have other keys such as the descent algo etc.
| ### Shared model+training parameters ### | ||
| # TODO: rename | ||
|
|
||
| shared_params : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is vague and the content is not coherent. to me, most of these params would go to the model.
config/config_default.yml
Outdated
| mode : "student-teacher" | ||
| # | ||
| source : | ||
| - masking_params : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this indentation is not the format you mean. it should be:
source:
- masking_params:
strategy: healpix
num_samples: 4
rate: 0.4
hl_mask: 4
same_strategy_per_batch: false
teacher_relationship: subset
- masking_params:
strategy: random
num_samples: 4
rate: 0.4
hl_mask: 4
same_strategy_per_batch: false
teacher_relationship: subset
or equivalently in json:
"source": [
{
"masking_params": null,
"strategy": "healpix",
"num_samples": 4,
"rate": 0.4,
"hl_mask": 4,
"same_strategy_per_batch": false,
"teacher_relationship": "subset"
},
{
"masking_params": null,
"strategy": "random",
"num_samples": 4,
"rate": 0.4,
"hl_mask": 4,
"same_strategy_per_batch": false,
"teacher_relationship": "subset"
}
]| checkpoint: 250 | ||
| log_validation: 0 | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing the latest tags section
|
|
||
| ### Latent noising parameters ### | ||
|
|
||
| latent_noise : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to go to training_strategy
|
Will be merged with #1541 |
Description
Updated config for new model developments, as well as overall improvement of structure.
Issue Number
Is this PR a draft? Mark it as draft.
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60