-
Notifications
You must be signed in to change notification settings - Fork 2
Update pipeline targets #47
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
7766acc
:wrench: Moved trainer and optimizer configs into dedicated files
jemrobinson 4b4f1f1
:wrench: Move prediction target settings to a dedicated config file
jemrobinson b657ae6
:sparkles: Pass n_forecast_steps and n_history_steps to CombinedDataset
jemrobinson 2d183f3
:safety_vest: Require that all datasets in a CombinedDataset have the…
jemrobinson be2916f
:sparkles: Add get_forecast_steps and get_history_steps to return lis…
jemrobinson beeec9d
:art: Return a dictionary of tensors instead of a list
jemrobinson b1d834f
:label: Separate numpy and torch batches
jemrobinson 0166f67
:sparkles: Get all available dates when constructing a CombinedDataset
jemrobinson 664d350
:heavy_plus_sign: Add cached index_from_date method
jemrobinson 3084f86
squash :sparkles: Get all available dates when constructing a Combine…
jemrobinson 57d242e
:recycle: Refactor Encoder and Decoder to take and return a time dime…
jemrobinson 90fcbbd
:recycle: Pass NTCHW batches through training
jemrobinson 2bec94a
:heavy_plus_sign: Add types-cachetools for mypy
jemrobinson 2287aed
:rotating_light: Fix typing errors
jemrobinson 6344289
:heavy_plus_sign: Use jaxtyping to annotate types of tensor and array…
jemrobinson 319cbe9
:label: Add type-hint to ZebraDataset cache
jemrobinson d2b80b8
:truck: Move 'predict' config to top-level
jemrobinson 3f7e811
:recycle: Lazy-load AnemoiDataset in ZebraDataset
jemrobinson 269b253
:recycle: Lazy-load CHW in ZebraDataset
jemrobinson 73841e0
:truck: Move CHW to DataSpace
jemrobinson a7868f6
:white_check_mark: Add basic ZebraDataset test
jemrobinson a68a69b
:white_check_mark: Add tests for a dummy AnemoiDataset
jemrobinson 136452b
:truck: Move Anemoi helper classes to types
jemrobinson eb4aad0
:white_check_mark: Add mock dataset for testing
jemrobinson 7b471fd
:white_check_mark: Add tests for DataSpace and length
jemrobinson a2961d4
:white_check_mark: Add tests for getitem
jemrobinson 79d2b95
:white_check_mark: Add tests for index_from_date
jemrobinson 03a79ca
:white_check_mark: Add tests for get_tchw
jemrobinson 22690d0
:bulb: Fix docstring for ZebraModel::forward
jemrobinson 81b730b
:rotating_light: Fix mypy type checks
jemrobinson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Name of the dataset group containing our prediction target | ||
| dataset_group: osisaf-south | ||
|
|
||
| # Number of future steps to predict | ||
| n_forecast_steps: 2 | ||
|
|
||
| # Number of history steps to use when predicting | ||
| n_history_steps: 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,6 @@ | ||
| defaults: | ||
| - callbacks: | ||
| - device_stats | ||
| - optimizer: default | ||
| - trainer: default | ||
| - _self_ | ||
|
|
||
| # Name of the dataset group containing our prediction target | ||
| predict_target: osisaf-south | ||
|
|
||
| # PyTorch lightning settings | ||
| trainer: | ||
| _target_: lightning.pytorch.trainer.trainer.Trainer | ||
| accelerator: auto | ||
| devices: auto | ||
| log_every_n_steps: 10 | ||
| max_epochs: 50 | ||
| optimizer: | ||
| _target_: torch.optim.AdamW | ||
| lr: 5e-4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # PyTorch Lightning optimizer settings | ||
| _target_: torch.optim.AdamW | ||
| lr: 5e-4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # PyTorch Lightning trainer settings | ||
| _target_: lightning.pytorch.trainer.trainer.Trainer | ||
| accelerator: auto | ||
| devices: auto | ||
| log_every_n_steps: 10 | ||
| max_epochs: 50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.