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

DTW prediction - Distance Matrix Values are INF! #147

Open
SimonAmpleman opened this issue Mar 2, 2018 · 1 comment
Open

DTW prediction - Distance Matrix Values are INF! #147

SimonAmpleman opened this issue Mar 2, 2018 · 1 comment

Comments

@SimonAmpleman
Copy link

Hello,
I am trying to use DTW with 6 floats per samples. I loaded 3 samples of around 200 events each for class 1 and about the same for class 2.

When I try to use the predict method each frame to get a realtime prediction, I get this error message :

GRT\ClassificationModules\DTW\DTW.cpp GRT::DTW::computeDistance:626 Distance Matrix Values are INF!

It shows on the console from time to time, maybe around each two seconds.

And for the prediction itself, it looks like random results. It switch between class 1 and 2 with large getMaximumLikelihood() such as "8".

I don't see anything wrong in my training data :

TrainingData.txt

I am on Windows platform, VS2017 with the latest master git source.

Thank you !

@nickgillian
Copy link
Owner

Hi Simon,

Your training data looks valid. It sounds like there might be some issues with the real-time data you where inputting to the trained model. Did you plot or look at the real-time data to see if there were any issues (such as NaNs in the data, or all zeros, or something like that)?

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