Coder Social home page Coder Social logo

Comments (5)

chlubba avatar chlubba commented on May 30, 2024

Hello Migal,

sorry to hear you are experiencing trouble with catch22. What do you mean by "amount of data is equal to 2"? catch22_all is only suited for univariate time series that are stored in a vector. Did you try it without the apply function of pandas?

Carl

from catch22.

IvMig avatar IvMig commented on May 30, 2024

What do you mean by "amount of data is equal to 2"?

I mean case when group_data.shape[0] == 2

Did you try it without the apply function of pandas

Sure. This code have the same behavior:
buf = pd.DataFrame(catch22.catch22_all(group_data[column_name]), dtype=np.float64)

from catch22.

chlubba avatar chlubba commented on May 30, 2024

Please try it without the direct use of pandas data frames by converting the column to a numpy array. I'll try to make catch22 pandas-ready but I guess for now you'll have to stick with Python lists or numpy arrays.

from catch22.

IvMig avatar IvMig commented on May 30, 2024

Please try it without the direct use of pandas data frames by converting the column to a numpy array. I'll try to make catch22 pandas-ready but I guess for now you'll have to stick with Python lists or numpy arrays.

I understand your concerns.

I try to set list as input into the catch22 functions and I have dead kernel as result. Here is the code:

functions = dir(catch22)[:-11] # get all functions from catch22
i=0
func = getattr(catch22, functions[i])
func(list(group_data[column_name]))

from catch22.

straiffix avatar straiffix commented on May 30, 2024

Have the same problem, kernel dies if apply function on array with len 1 or 2.
Could be useful to add exception for it.

from catch22.

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.