ecp is the Python equivalent of the ecp R package containing various procedures for finding multiple change-points. Two methods make use of dynamic programming and pruning, with no distributional assumptions other than the existence of certain absolute moments in one method. Hierarchical and exact search methods are included. All methods return the set of estimated change-points as well as other summary information.
Please see package manual for more details.
The package contains two datasets
- ACGH: bladder tumor micro-array data
- DJIA: Dow Jones industrial average index
The package contains algorithms for detecting multiple change-points. A list containing brief descriptives of these algorithms are as follows:
- Agglomerative hierarchical estimation
- Divisive hierarchical estimation
- Estimation by pruned objectives via energy statistics
- Estimation by pruned objectives via Kolmogorov-Smirnov statistics
pip install git+https://github.com/egoolish/ecp_python
The example.py file contains various basic examples demonstrating how to use the ecp package, as well as the similarities to the R version. Note that this file does require the package rpy2 as well as its dependencies.
Note: the ecp package was built with users of Python 3 in mind. With the EOL of Python 2.7, users should be aware of the possibility of untested bugs. Upgrading to the latest version of Python 3 is the safest way to ensure proper output.