Git Product home page Git Product logo

Comments (8)

vanbenschoten avatar vanbenschoten commented on August 17, 2024

@dvdcoliveira what version of the library are you using? Is it the latest (0.0.8)?

from matrixprofile-ts.

dvdcoliveira avatar dvdcoliveira commented on August 17, 2024

Hi! @vanbenschoten,

I was using python version 3.7.1 and matrixprofile-ts version 0.0.6. I updated to 0.0.8 but the problem still persists.

If I use scrimp++ this does not happen.

Additional information:

  • numpy version 1.15.4
  • Windows version 10 Enterprise.

Many thanks for the support,
David

from matrixprofile-ts.

AlexandreRodrigues1 avatar AlexandreRodrigues1 commented on August 17, 2024

Hi,
Found the same issue when appending a constant value zero to the rawdata example.
Solve it by adding a very small noise to the example pattern:
N = 1046
ix = np.arange(N)
signal = np.sin(2*np.pi*ix/float(32))*0.01
m = 32
mp = matrixProfile.stomp(pattern+signal,m)

Probably it's a problem with the time series z normalization. When I run the matrixprofile with the constant values I get the following errors:

  • matrixprofile\utils.py:177: RuntimeWarning: divide by zero encountered in true_divide
  • utils.py:200: RuntimeWarning: divide by zero encountered in true_divide
  • distanceProfile.py:126: RuntimeWarning: invalid value encountered in sqrt
  • matrixProfile.py:249: RuntimeWarning: invalid value encountered in less idsToUpdate = distanceProfile < mp

Hope it helps,
Alex

from matrixprofile-ts.

vanbenschoten avatar vanbenschoten commented on August 17, 2024

@AlexandreRodrigues1 thanks much for the contribution! @aouyang1 did you ever figure out a solution to this challenge for go-matrixprofile?

from matrixprofile-ts.

AlexandreRodrigues1 avatar AlexandreRodrigues1 commented on August 17, 2024

Thank you to @vanbenschoten and the other contributors too, for the excellent job done in implementing the Matrix Profile algorithms in python :)

from matrixprofile-ts.

aouyang1 avatar aouyang1 commented on August 17, 2024

I'll need to test this case as well. I don't believe the golang version handles this nicely either. Hopefully can get back to you all on this in the next few days

from matrixprofile-ts.

peterdhansen avatar peterdhansen commented on August 17, 2024

This is the same as #11

from matrixprofile-ts.

tylerwmarrs avatar tylerwmarrs commented on August 17, 2024

Closing as issues is same as #11

from matrixprofile-ts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.