Giter Club home page Giter Club logo

pyampd's People

Contributors

ig248 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pyampd's Issues

A question about most local maxima

Hi, @ig248 ,

I read the original paper and compared it with your implementation, I am wondering why below code reshapes LSM matrix by LSM[0:l_scale, :] but not by LSM[0:l_scale+1, :]?

pks_logical = np.min(LSM[0:l_scale, :], axis=0)

As the paper said, it reshapes the LSM matrix by removing all elements m_{k,i} for which k > λ holds. So it should lead to new λ ×N matrix. But in your implementation, the new matrix is (λ-1) ×N.

And under certain dataset, the l_scale may equals to 0, then LSM[0:0] will throw an exception...

Looking forward to your response

Indexing error leads to crash when maximum of G is the first value

I wanted to run the script on my data but always got the error
"ValueError: zero-size array to reduction operation minimum which has no identity" in line 107 of ampd.py

The issue is that the largest value in G (for my data) is the first one and thus
l_scale = np.argmax(G)
leads to l_scale = 0

In line 107 the array LSM is reduced to
LSM[0:l_scale, :]
But as l_scale = 0 this leads to an empty array and an error when trying to to use np.min on it.

I think line 107 should be
pks_logical = np.min(LSM[0:l_scale+1, :], axis=0)

Embedded Python (CircuitPython, Zephyr, micropython) support?

Love the performance of this library for my time series analysis project, I would love to use it for my micropython or circuitpython projects (ESP32, Teensy and Arduino) and I think it perfectly complements upcoming egde ML tool chains from Nvidia-ARM and TinyML.

Thank you!

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.