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

Getting negative values for distance #27

Open
aghababa opened this issue Jun 26, 2021 · 1 comment
Open

Getting negative values for distance #27

aghababa opened this issue Jun 26, 2021 · 1 comment

Comments

@aghababa
Copy link

Why do I get negative values from distance with some values for gamma?
For example, on a trajectory dataset, I had to choose gamma=1e-15 in order to get positive values. But this is nothing than dtw!

The dataset I used is available here: https://archive.ics.uci.edu/ml/datasets/GPS+Trajectories

In other datasets that I examined, gamma needs to be chosen carefully and small enough to works. Am I right?

@matanox
Copy link

matanox commented Jan 5, 2024

Negative distances seem to be a possible output of the algorithm, a feature which is addressed in a later work that is also implemented at: https://github.com/google-research/soft-dtw-divergences

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