Skip to content
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

Using variable length data #9

Open
danielshin1 opened this issue Feb 8, 2021 · 1 comment
Open

Using variable length data #9

danielshin1 opened this issue Feb 8, 2021 · 1 comment

Comments

@danielshin1
Copy link

Hi tejaslodaya,

First, thank you for sharing the repo!

I'm currently trying to run the autoencoder on trajectory data(with x, y coordinates) that are variables in length.
It's mentioned in the readme that. "The length of timeseries may vary from sample to sample. Conventional techniques only work on inputs of fixed size." So I was wondering if the current implementation already supports variable length data or do I need to modify the code for my purpose (similar to this https://towardsdatascience.com/taming-lstms-variable-sized-mini-batches-and-why-pytorch-is-good-for-your-health-61d35642972e) with pack_padded_sequence and
pad_packed_sequence.

Thanks!

@shreejalt
Copy link

Yes,
I have the same doubt. My data contains variable-length sequences. But how to incorporate the packed padded sequence and pad_packed_Sequence in the decoder part, as in this code, it only takes the final hidden state from the encoder from initialization for the decoder hidden state.

@danielshin1 if you have figured it out can you let me know about the variable length thingy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants