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.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycewise-0.1.3-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.58.0 CPython/3.9.2

File hashes

Hashes for pycewise-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8231cd13d8e5b4ff8e14ea7852190a708c2e125668b60cb33d104e270150d624
MD5 04d0cf089889541696dd361a9e1c8b50
BLAKE2b-256 74602a0b3e40d7e9586e2e1e1408286659a83e5035ac3b13fa9a042fc51fd8f5

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