Skip to main content

Multiple breakpoint detection toolkit.

Project description

Multi-ruptures

Features

🔥 A powerful Python library for multiple change point detection with:

  • High-performance implementation of rupture detection algorithms
  • Support for multiple data types (time series, signals, sequences)
  • Easy-to-use API for both beginners and advanced users
  • Comprehensive visualization tools
  • Extensive documentation and examples

🚀 Quick Start

Note: Requires Python 3.8+

  1. Install via pip:
pip install multi-ruptures
  1. Basic usage:
import multi_ruptures as mr

# Load your data
signal = ...

# Detect change points
algo = mr.Pelt()
change_points = algo.fit_predict(signal)

📊 Examples

# Example with visualization
import multi_ruptures as mr
import matplotlib.pyplot as plt

# Generate sample signal
signal = mr.datasets.generate_random_peaks(n_samples=1000)

# Detect ruptures
algo = mr.Pelt(model="rbf", min_size=5)
change_points = algo.fit_predict(signal)

# Display results
mr.display(signal, change_points)
plt.show()

🛠️ Development

For development setup:

  1. Clone the repository
  2. Install development dependencies:
make install-dev

🧪 Testing

Run tests with:

make test

📚 Documentation

Full documentation is available at docs/.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

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

multi_ruptures-0.1.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

multi_ruptures-0.1.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file multi_ruptures-0.1.3.tar.gz.

File metadata

  • Download URL: multi_ruptures-0.1.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Darwin/24.0.0

File hashes

Hashes for multi_ruptures-0.1.3.tar.gz
Algorithm Hash digest
SHA256 731d8482a51ed0d5d1999b07614789af880e4d7bd18f2663c11452a76a2b756b
MD5 78a39017c50f98ab3b12e13dabb27af7
BLAKE2b-256 c615cedaf3083b03fced64a09d06546c91c3c24b6dff5e1fb881ac12e91c6f44

See more details on using hashes here.

File details

Details for the file multi_ruptures-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: multi_ruptures-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Darwin/24.0.0

File hashes

Hashes for multi_ruptures-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f62b729fd3ff4eabbee62bf2ea87be42b1d3c9f7d5e26a45404717ef01bcf1b6
MD5 7a63c59bc5c0891951ebe9cac3004c37
BLAKE2b-256 a22245d861140c11fd34fe24abf71dcebc676e403c69c31a3a54be26418ed18e

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