A Python package to implement stepwise regression
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for stepwise-regression-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e1040305c69ae3c2b7c44896d4882e1974733cf9d12e9d0c2b77d0247786f6 |
|
MD5 | cffebd18fb4312b1e86823685129ec67 |
|
BLAKE2b-256 | 94c303046488e0894565b825f898f0d7a3e84c0a3c161d95b2c80993ff995acb |
Hashes for stepwise_regression-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24bcb1e4272dfc950d31c6d1ce199edcc6832a54b754c2843d297901225d4377 |
|
MD5 | bc3b3a0ad6fe7e012bb2d1dc6e27619a |
|
BLAKE2b-256 | 65152602cd2539aefe3577af7f50bf0e5e06dda703dde9282d36692bc9d988da |