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/ringrong_loopback.csv').groupby('size').mean().reset_index()
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.1rc1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pycewise-0.1.1rc1-py3-none-any.whl.

File metadata

  • Download URL: pycewise-0.1.1rc1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 115eafc0ed2ad39c457eed5962eb1ac54487ca96a4c1db0c35bf16b2bbc60af5
MD5 bdcc3646fa5c4ac24e133b2ad1dd85cd
BLAKE2b-256 78aea4e6a7d4979a50ab77f0bb0a2018f621f8f406d8eefd1b7eced28a41b5cf

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