tropea-clustering (the newest version of onion-clustering) is a Python package for single-point time-series clustering.
Author: Matteo Becchi
This version of onion clustering is meant to be used as an external library, and complies with the scikit-learn format. If you are looking for the standalone onion clustering version, you can find it at https://github.com/matteobecchi/timeseries_analysis. However, be aware that the standalone version has been last updated on September, 2024 and is no longer supported or mantained. We reccomand using this version.
To get tropea-clustering
, you can install it with pip
pip install tropea-clustering
The examples/
folder contains examples of usage.
Onion Clustering is an algorithm for single-point clustering of time-series data. It performs the clustering analyses at a specific time-resolution
Performing this analysis at different values of the time resolution
For plotting the results, you will need also
- matplotlib
- plotly (optional)
- kaleido (optional)
If you use tropea-clustering (or onion-clustering) in your work, please cite https://doi.org/10.1073/pnas.2403771121.
We developed this code when working in the Pavan group, https://www.gmpavanlab.com/. Thanks to Andrew Tarzia for all the help with the code formatting and documentation, and to Domiziano Doria, Chiara Lionello and Simone Martino for the beta-testing.
The work was funded by the European Union and ERC under projects DYNAPOL and the NextGenerationEU project.