Reputation: 2157
I have ECG data and sleep annotations as target. The data is recorded in sessions. For one case, I want to use each session as an input sample. Therefore, I need to zero-pad the input data to achieve same length/dimension. What do I do with the target data?
Do I also "zero-pad" to achieve the same length/dimension? I could use a new state (e.g. 666 as 0 is already in use) which will then not be considered by using a masking layer on the particular zero-padded input data.
Or do I just leave the target as it is?
Thanks for your help
edit: more info about the data
Upvotes: 0
Views: 756
Reputation: 2157
after some logical thinking, I came to the obvious conclusion, that you have to pad also the target. As the samples are of different length apparently, you need to pad to be able to create a tensor with fixed dimensions.
I would create a new label for the mask_value. For this labels, there is no training as these timesteps are skipped and the weights are set to zero via the masking.
Upvotes: 1