Giter VIP home page Giter VIP logo

Comments (2)

ogreyesp avatar ogreyesp commented on June 3, 2024 1

@seanlaw Thank you very much.

Now, it is clearer for me. So, in my case, the second option you mentioned (the use of np.nan) is the most suitable.

Best regards

Óscar

from stumpy.

seanlaw avatar seanlaw commented on June 3, 2024

@ogreyesp Thank you for your question and welcome to the STUMPY community.

I'm creating a method wherein some subsequences of the timeseries provided to ostinato should not be taken into account.

If you truly do not care about a subsequence then you have two main options:

  1. You can remove those subsequences from your original time series.
  2. You can manually set the values of those subsequences to np.nan. In STUMPY, any subsequence that contains np.nan/np.inf will have their corresponding distances set to np.nan.

Is that the purpose of Ts_subseq_isconstant parameter?

No, the subseq_isconstant parameter found throughout STUMPY are a way for the user to annotate each subsequences within a time series as "constant" (i.e., are all of the values within the subsequence the same) or not. Due to numerical imprecision, simply checking if the standard deviation within each subsequence is equal to zero is insufficient in some rare cases and so we've provided this parameter to allow for more user control.

from stumpy.

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.