GithubHelp home page GithubHelp logo

Comments (1)

kohlrabi90 avatar kohlrabi90 commented on August 24, 2024

Hi @lk1983823 ,
with the default feature extraction function, it is not possible to do this. However, you could run the extraction on each of your time series (columns) separately: first, extract the mean, then adjust the settings, and finally call feature extraction only on one series. Then repeat for the next.
You can use the feature extraction settings to customize "m".

Here is an example how you can set "m"

from tsfresh.feature_extraction import ComprehensiveFCParameters
from tsfresh.feature_extraction import extract_features

# Adjust the value for m
settings = ComprehensiveFCParameters()
settings["number_crossing_m"] = [{'m': your_mean_value}]

results = extract_features(df,  default_fc_parameters=settings)

Additionally, (but more complex), you could write your own custom feature calculator, which does (1) calculate the mean and (2) then call the original feature calculator. However, that only works for a single column (not when you want to use the mean for x2 for calculating x1). I would recommend the first option.

from tsfresh.

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.