Advanced regression methods with sklearn-like interface
Project description
Better Regressions
Advanced regression methods with an sklearn-like interface.
Current Features
Linear:- Configurable regularization: Ridge with given
alpha/ BayesianRidge / ARD - "Better bias" option to properly regularize the intercept term
- Configurable regularization: Ridge with given
Scaler:- Configurable preprocessing: Standard scaling (by second moment) / Quantile transformation with uniform/normal output / Power transformation
AutoScalerto automatically select the best scaling method based on validation split
Smooth: Boosting-based regression using smooth functions for featuresSuperSmoother: Adaptive-span smoother for arbitrary complex functions.Angle: Bagging of piecewise-linear functions, it's less flexible but because of that it's more robust to overfitting.
Installation
pip install better-regressions
Basic Usage
from better_regressions import auto_angle, auto_linear, Linear, Scaler
from sklearn.datasets import make_regression
import numpy as np
X, y = make_regression(n_samples=100, n_features=5, noise=0.1)
model = auto_angle(n_breakpoints=2)
model.fit(X, y)
y_pred = model.predict(X)
print(repr(model))
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 Distribution
better_regressions-0.2.0.tar.gz
(442.8 kB
view details)
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
File details
Details for the file better_regressions-0.2.0.tar.gz.
File metadata
- Download URL: better_regressions-0.2.0.tar.gz
- Upload date:
- Size: 442.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb5760de0a560352e837d69724e0029578c7fa9028e47b7c78ffe2edcf3f7e01
|
|
| MD5 |
f68232fe7f57ea0afc48371bce94f89b
|
|
| BLAKE2b-256 |
1f877dd82cb998af0517c11abe4b28e56ce3b961d28e0cd7153ab344befaebc8
|
File details
Details for the file better_regressions-0.2.0-py3-none-any.whl.
File metadata
- Download URL: better_regressions-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34086f5e39a50e774cd1134b124893c022adea6b3b9943593ba5a2da4809a6c4
|
|
| MD5 |
6ec2dd09da64a4b32eca3f2afb1b626e
|
|
| BLAKE2b-256 |
7f2b5f8a8b1a6a11f105de2664921319c11123330646f0d59224f96d9620ef83
|