Stepwise Regression
A python package which executes linear regression forward and backward
Usage
The package can be imported and the functions
forward_regression:
Performs a forward feature selection based on p-value from statsmodels.api.OLS Arguments: X - pandas.DataFrame with candidate features y - list-like with the target threshold_in - include a feature if its p-value < threshold_in verbose - whether to print the sequence of inclusions and exclusions Returns: list of selected features
backward_regression:
Performs a forward feature selection based on p-value from statsmodels.api.OLS Arguments: X - pandas.DataFrame with candidate features y - list-like with the target threshold_out - exclude a feature if its p-value > threshold_out verbose - whether to print the sequence of inclusions and exclusions Returns: list of selected features
can be used
Metadata
Release files for stepwise-regression 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stepwise-regression-1.0.3.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stepwise_regression-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / stepwise-regression-1.0.3.tar.gz
| Download URL | stepwise-regression-1.0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03e1040305c69ae3c2b7c44896d4882e1974733cf9d12e9d0c2b77d0247786f6
|
|
BLAKE2b-256 checksum How to use checksums |
94c303046488e0894565b825f898f0d7a3e84c0a3c161d95b2c80993ff995acb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0
|
Release files / stepwise_regression-1.0.3-py3-none-any.whl
| Download URL | stepwise_regression-1.0.3-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24bcb1e4272dfc950d31c6d1ce199edcc6832a54b754c2843d297901225d4377
|
|
BLAKE2b-256 checksum How to use checksums |
65152602cd2539aefe3577af7f50bf0e5e06dda703dde9282d36692bc9d988da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0
|