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

Why reverse the sequence? #5

Closed
caiyongqi opened this issue Dec 25, 2020 · 2 comments
Closed

Why reverse the sequence? #5

caiyongqi opened this issue Dec 25, 2020 · 2 comments

Comments

@caiyongqi
Copy link

caiyongqi commented Dec 25, 2020

reverse the sequence

us_pois = [list(reversed(upois)) + [0] * (max_len - le) if le < max_len else list(reversed(upois[-max_len:])) for upois, le in zip(inputData, len_data)]

Why reverse the sequence?
Thank you.

@Mikrokosmos1997
Copy link
Collaborator

Thank you for your interest.
In this work, we incorporate position information into the model by using reversed position vectors, where the first position vector corresponds to the last item. Comparing with reversing position vectors, we found that it is more convenient to reverse the original sequence.

@caiyongqi
Copy link
Author

Thank you for your interest.
In this work, we incorporate position information into the model by using reversed position vectors, where the first position vector corresponds to the last item. Comparing with reversing position vectors, we found that it is more convenient to reverse the original sequence.

Thanks for your answer.

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