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

32 Bit constraint for input vectors #8

Open
lvlanson opened this issue Sep 7, 2021 · 6 comments
Open

32 Bit constraint for input vectors #8

lvlanson opened this issue Sep 7, 2021 · 6 comments

Comments

@lvlanson
Copy link

lvlanson commented Sep 7, 2021

Hello Mr Tralie,

this is Thomas Davies. I was wondering why you have this constraint for the input vectors X and Y to be 32 Bit. Do you think it is also possible in the future to work with 64 Bit floats?

Kind Regards,
Thomas Davies

@ctralie
Copy link
Owner

ctralie commented Sep 7, 2021 via email

@lvlanson
Copy link
Author

lvlanson commented Sep 8, 2021

Hi!

I use your DTW algorithm for a machine learning algorithm, where I update the timeseries based on the distance between two timeseries. Over the course of the learning process the float values can become really small, since I need to scale them between 0 and 1 before I start training them. The more epochs I use, the more likely it is that I work with really small floats EDIT: and huge floats. I usually get a buffer overflow warning pretty fast when using linear memory dtw.

There is currently no rush for implementing a 64 bit version. I'd even try to help out myself. Currently I need to finish my thesis and when I'm done I can try to make a 64 bit version. My work is based on this paper https://www.sciencedirect.com/science/article/abs/pii/S0031320317304387. I am incorporating your work as well.

I can send you some code if you are interested in this topic.

@ctralie
Copy link
Owner

ctralie commented Sep 19, 2021 via email

@ctralie
Copy link
Owner

ctralie commented Sep 19, 2021

Anyway, if memory is all you care about and you don't need to use CUDA to parallelize the computation, then one thing I could do in the meantime is enable a 64-bit option for the CPU

@lvlanson
Copy link
Author

Hey there,

don't worry about this for now. We could add 64-bit support in the future.

For now I need to install the changed linmdtw version in my system. Currently I am having a hard time it being recognized correctly and running.

@ctralie
Copy link
Owner

ctralie commented Sep 19, 2021 via email

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