Preprocessing Data
#10433
Replies: 1 comment
-
implementing it here will always to a fit_transform on all the samples one-by-one which is not correct. Ideally fit_transform is done on whole train sample and transform is performed on val/test/inference data using the same instance.
if this operation is supposed to happen on a batch individually I'd suggest to checkout |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi There,
I have two questions on how to best implement preprocessing steps within pytorch-lightning framework. For context, I am working with time series data and a shallow 1 layer CNN.
Currently my dataset module is:
And my datamodule is quite generic:
What I would like to know is:
prepare_data
routine within my data module?torchaudio.transforms.TimeMasking
. I would like these to be randomly applied to a certain number of samples in each batch according to a specified probability. How/Where would I incorporate this step?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions