Skip to content

egoolish/ecp_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Overview

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.

Datasets

The package contains two datasets

  • ACGH: bladder tumor micro-array data
  • DJIA: Dow Jones industrial average index

Change-point methods

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

Installation

pip install git+https://github.com/egoolish/ecp_python

Example

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.

Support

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.

About

ecp Python package for finding multiple change-points.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages