-
Notifications
You must be signed in to change notification settings - Fork 62
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
Partial inputs - Pakistan flood tutorial #154
Conversation
…ind a signal for floods with pca and tsne
7bbb718
to
1feb993
Compare
e0efc05
to
ce866d1
Compare
0426f6e
to
3041b68
Compare
6fdba5a
to
59b0565
Compare
src/datamodule.py
Outdated
date = chip.tags()["date"] # YYYY-MM-DD | ||
year, month, day = self.normalize_timestamp(date) | ||
( | ||
year, | ||
month, | ||
day, | ||
year_non_norm, | ||
month_non_norm, | ||
day_non_norm, | ||
) = self.normalize_timestamp(date) |
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 are already returning the non-normalized date as a YYYY-MM-DD string no? Instead of using ts.append(batch["timestep_non_norm"])
in your partial-inputs-flood-tutorial.ipynb notebook, could you use ts.append(batch["date"])
?
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.
Fixed this. It worked, thanks!
src/datamodule.py
Outdated
@@ -175,7 +184,7 @@ def train_dataloader(self): | |||
self.trn_ds, | |||
batch_size=self.batch_size, | |||
num_workers=self.num_workers, | |||
shuffle=True, | |||
shuffle=False, |
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 should be shuffling the mini-batches in the train_dataloader
, is there a reason to set it to False here?
shuffle=False, | |
shuffle=True, |
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 rolled back changes to the datamodule in this PR, so it is the same as in main. I think this should be examined in a separate PR since no training is occurring for the purpose of this one.
567a73a
to
aa825b5
Compare
4a4e86f
to
7637b46
Compare
11a8f6c
to
067aaa2
Compare
4804f6d
to
d5b9922
Compare
for more information, see https://pre-commit.ci
This is a tutorial following the style of #149 to show how to generate embeddings from partial inputs and find a signal for a major monsoon flood in Padidan, Pakistan (August 2022) with PCA and t-SNE.
Modifications (aside from AOI and time):