-
-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
50d3c36
to
7b677d5
Compare
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.
Few smaller comments, but after fixing that LGTM! 👍
Some [tests] fail for the dataloader/datamodule
Are we tracking those anywhere already?
@@ -153,7 +139,7 @@ def encode_absolute_position( | |||
|
|||
|
|||
def normalize_geospatial_coordinates( | |||
geospatial_coordinates, geospatial_bounds: Dict[str, float], **kwargs | |||
geospatial_coordinates: List[np.ndarray], geospatial_bounds: Dict[str, float], **kwargs |
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.
yay, more types!
Co-authored-by: Flo <[email protected]>
Co-authored-by: Flo <[email protected]>
No, not right now, it seems like some changes in nowcasting-dataset meant the dataloading code I copied from SatFlow fails. Since nowcasting-dataset is still changing quite a bit with openclimatefix/nowcasting_dataset#213 I was going with sorta waiting till that's more finished to fix the tests. I'll make pytest skip them actually for now |
I'll be making these tests pass as part of #7 |
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.
Looks really great to me! Very nicely structured code - easy to read!
A few comments, mostly pretty small!
|
||
|
||
def encode_modalities( | ||
modalities_to_encode: Dict[str, torch.Tensor], |
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 wonder if we should use an Enum for modality names, instead of strings? I'll start a new issue: #15
Co-authored-by: Jack Kelly <[email protected]>
Co-authored-by: Jack Kelly <[email protected]>
Co-authored-by: Jack Kelly <[email protected]>
Co-authored-by: Jack Kelly <[email protected]>
…cob/position-encoding
Co-authored-by: Jack Kelly <[email protected]>
…cob/position-encoding
Pull Request
Description
Moved from openclimatefix/nowcasting_utils#33
Adds positional encoders for:
It is generated using Fourier Features for now, although other options could include coordinates, such as CoordConv or others.
Fixes #4
How Has This Been Tested?
Unit Tests, which pass for the encoding. Some fail for the dataloader/datamodule, but that's unrelated to this
Checklist: