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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb0f5688602add1472e60455b83fa41c75c401275b3b22e1525a15f97bfbc58 |
|
MD5 | fd6f0aecc7af87ef056c98aad9cf4a00 |
|
BLAKE2b-256 | a236984827de4c55e64a01fc23330602788cb735c0381c86f4f2e4b536ff2683 |
Hashes for stepwise_regression-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35889acfce28238e7f01f2cc503f858f1996db9d2cb1abfca9df9d43620e316 |
|
MD5 | 42fb31a275ed517f04ee57038649ce0d |
|
BLAKE2b-256 | f9282c990944a456669a496767bd5e57ee6ccdc4660666559f18d7708af00a74 |