Skip to main content

Online changepoint detection for python

Project description

Welcome to CPFinder 👋

Version Documentation License: MIT Total alerts Language grade: Python Open In Colab Twitter: iboraham

Online changepoint detection for python

🏠 Homepage

Demo

Demo

Install

pip install cpfinder

Usage

python example.py

 ---

# Import libraries
>> from cpfinder import cpfinder
>> from cpfinder.datasets import generate_normal_time_series

# Example data
>> data = generate_normal_time_series(3)

# Changepoint Detection
>> detector = cpfinder(data=data, method="bocpd")
>> detector.fit(animationFlag=True, interval=100, plotFlag=False)
>> print(detector.changepoints)

'''
[171, 1538]
'''

# You can save animation as gif
>> detector.saveAnimationVideo("assets/animation.gif")

Run tests

python tests

Author

👤 I.Onur Serbetci

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 I.Onur Serbetci.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

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

cpfinder-0.2.1.tar.gz (12.6 kB view hashes)

Uploaded Source

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