Skip to main content

Add peak-to-peak interval features to tsfresh

Project description

tsfresh_ppi

This package provides some peak-to-peak interval (PPI) variability features to augment tsfresh [1]. Currently, tsfresh will find and count peaks using a couple of different methods. However, it does not measure the variability in timing between those peaks.

Installation

Option 1: Clone this repo. Install prereqs from requirements.txt. Then install the cloned directory, e.g. with pip3 install -e [repo path].

Option 2: Install directly from PyPI (tsfresh-ppi).

Usage

from tsfresh import extract_features
from tsfresh_ppi import get_fc_parameters

my_signal = ...  # some pandas DataFrame

# The default way to extract features with tsfresh looks something like this:
features = extract_features(
    my_signal,
    ...
)

# This is how to get all of the default tsfresh features, plus default PPI features:
fc_params_with_ppi = get_fc_parameters()
features = extract_features(
    my_signal,
    default_fc_parameters = fc_params_with_ppi,
    ...
)

References

[1] https://github.com/blue-yonder/tsfresh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsfresh_ppi-2021.8.12.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsfresh_ppi-2021.8.12-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file tsfresh_ppi-2021.8.12.tar.gz.

File metadata

  • Download URL: tsfresh_ppi-2021.8.12.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.10

File hashes

Hashes for tsfresh_ppi-2021.8.12.tar.gz
Algorithm Hash digest
SHA256 0d4ecd8e344a31874bffc52ce2854168956bf9427ad229c57a140e82d3de3682
MD5 26f47d4a6d80dfa3b61afe9b97dd8764
BLAKE2b-256 3f98eb785c40b3940fbed9544c0e462eddc5751edb975b25d16a20c5a213b966

See more details on using hashes here.

File details

Details for the file tsfresh_ppi-2021.8.12-py3-none-any.whl.

File metadata

  • Download URL: tsfresh_ppi-2021.8.12-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.10

File hashes

Hashes for tsfresh_ppi-2021.8.12-py3-none-any.whl
Algorithm Hash digest
SHA256 bb30dde7a9378c858b21f999abbbd01b91795d669c791a9e7792884ee92eea6a
MD5 33c9b08a148cb0fd7a12a6cd2172e365
BLAKE2b-256 b1e6b72820d4fb5d3294eee989daf4f406b0e5423f7a60084ebca43ce7cbbc95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page