iboraham / online_changepoint_detector

Online changepoint detection for time-series data - library for python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to CPFinder πŸ‘‹

Version Documentation Downloads License: MIT 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(totalPartitions=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

About

Online changepoint detection for time-series data - library for python

License:MIT License


Languages

Language:Python 100.0%