Skip to main content

Piecewise linear regressions, based on model trees.

Project description

Pycewise

Coverage Status

Installation

From a wheel (recommended)

pip install pycewise

Optional 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pycewise-0.1.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file pycewise-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pycewise-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for pycewise-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9aab93a29dee57a1d9a2f51a36cd20521a41634ab156438fd1cbb6a6bf57250
MD5 82bfac53c9198d5a7e178589f45657c3
BLAKE2b-256 5e6b3563ee6f7c28ac490d2f936b557bc8a2e10aff1ae57d81e249236a1ef35a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page