Piecewise linear regressions, based on model trees.
Project description
Pycewise
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.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pycewise-0.1.4-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file pycewise-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pycewise-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ba554e397e0c4283899f8632ddba9f6ceee2f79b6893467e376938a84bc88c8
|
|
| MD5 |
de634f4ddce5119a7aa548ab92f39288
|
|
| BLAKE2b-256 |
6c046249487560d3d85beafe26ee41c8865948c2f803534fc9e6e799b1ada5f2
|