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

output the alignments of two sequences #31

Open
XIDIANPQZ opened this issue Aug 16, 2023 · 2 comments
Open

output the alignments of two sequences #31

XIDIANPQZ opened this issue Aug 16, 2023 · 2 comments

Comments

@XIDIANPQZ
Copy link

Hello,thanks for the beautiful implementation of dtw!

I'm facing an issue when using this code.
At first, I want to output the alignments of two sequences.
Therefore, I change the output of forward function in class _SoftDTWCUDA.
The new output is R instead of R[:, -2, -2].
When running loss.backward(), the error occurs: TypeError: backward() takes 2 positional arguments but 3 were given.

I would greatly appreciate it if you could assist me in understanding the cause of this issue and providing guidance on resolving it. Any insights you can offer would be invaluable.

Thank you in advance for your help!

@XIDIANPQZ
Copy link
Author

I solve this problem by setting the equal number between forward output and backward input.

@XIDIANPQZ
Copy link
Author

I would like to ask if there is any alignment information saved during the forward propagation process. If not then I have to write backtracking algorithm to generate it.

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

1 participant