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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycewise-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25a196976489e6ca74f05b49d9c778d754eaf75495a7394f62420886cad14839
MD5 3970bd3e75794b3cf5b586cea641f846
BLAKE2b-256 9e3a03fe25c76c1a2708adb0d3ef48cb258db2a32d251904c1be9763e6917345

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