Skip to main content

ClaSP - Time Series Segmentation

Project description

ClaSP - Time Series Segmentation

Installation

You can also install the project from source.

Build from Source

First, download the repository.

git clone https://github.com/patrickzib/clasp_segmentation.git

Change into the directory and build the package from source.

pip install .

Example Code

from clasp.annotation.clasp import ClaSPSegmentation, find_dominant_window_sizes
X = ... # load dataset
dominant_period_size = find_dominant_window_sizes(X) * 2
clasp = ClaSPSegmentation(dominant_period_size, n_cps=1)
found_cps = clasp.fit_predict(X)
profiles = clasp.profiles
scores = clasp.scores

See also the notebooks-folder for a Jupyter-Notebook

Citing

If you use this algorithm or publication, please cite:

@inproceedings{clasp2021,
  title={ClaSP - Time Series Segmentation},
  author={Sch"afer, Patrick and Ermshaus, Arik and Leser, Ulf},
  booktitle={CIKM},
  year={2021}
}

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

clasp-segmentation-0.1.1.tar.gz (756.2 kB view details)

Uploaded Source

File details

Details for the file clasp-segmentation-0.1.1.tar.gz.

File metadata

  • Download URL: clasp-segmentation-0.1.1.tar.gz
  • Upload date:
  • Size: 756.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for clasp-segmentation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 130d48ad0b8af1525764f53a75c327a8351960b7436df65b34d9ecf3eaf33d71
MD5 ee998ee4c040983ca10d3e8d37888047
BLAKE2b-256 5cc932191ffb0398b467446a315af4a89b89de2145f55b14a93fa03fd01e4351

See more details on using hashes here.

Supported by

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