Skip to content

Python module to compute a segmented linear regression.

License

Notifications You must be signed in to change notification settings

Ezibenroc/pycewise

Repository files navigation

Pycewise

DOI

Installation

pip install pycewise

Optional installation requirements

The main functionnality of this package (computing a segmented linear regression) can be used without any third-party code.

For additional features, the following packages should be installed (pip install <package_name>):

  • numpy
  • statsmodels
  • jupyter
  • matplotlib
  • graphviz
  • coverage
  • mock
  • palettable

Usage

Basic example:

from pycewise import *
import pandas

df = pandas.read_csv('test_data/memcpy_small.csv')
reg = compute_regression(df['size'], df['duration'], mode='log')
print(reg)

For more advanced usage, see the notebooks.

About

Python module to compute a segmented linear regression.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages