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

Prediction per timestamp #7

Open
joniali opened this issue Aug 12, 2021 · 2 comments
Open

Prediction per timestamp #7

joniali opened this issue Aug 12, 2021 · 2 comments

Comments

@joniali
Copy link

joniali commented Aug 12, 2021

Thanks a lot for the great code! It's nicely written.

If I understand it correctly, given a sequence of events and timings your code only predicts the last event and the corresponding timing. As opposed to https://github.com/musically-ut/tf_rmtpp/blob/ea4ab25b12422d3b0657082c90bc4beb957c0e83/src/tf_rmtpp/rmtpp_core.py#L575 which I believe predicts every event and timing and computes its corresponding losses.

It would be great if you could clarify this!

@joniali joniali changed the title Prediction Prediction per timestamp Aug 12, 2021
@ritvik06
Copy link

ritvik06 commented Jan 27, 2022

I also believe what you have stated is true (Reference lines 69 and 70 in model.py). For a sequence of length L, the model should train (and predict) the next timestamp and category for every subset sequence of length K (<L). I will raise a pull request for this soon.

@ritvik06
Copy link

ritvik06 commented Jan 27, 2022

If you go through utils.py, you will notice that the dataloader consists of length seq_len. If there is a sequence of length L, the author utilizes all contiguous seq_len length sequences (possible only if seq_len <= L) in its training and testing, so each sequence in the data contributes (L-seq_len+1) sequences in the training and test data. What most other papers do is what I talked about above (predict next event for every subset sequence of length K (<L)).

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