Skip to main content

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

stepwise-regression-1.0.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

stepwise_regression-1.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file stepwise-regression-1.0.3.tar.gz.

File metadata

  • Download URL: stepwise-regression-1.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for stepwise-regression-1.0.3.tar.gz
Algorithm Hash digest
SHA256 03e1040305c69ae3c2b7c44896d4882e1974733cf9d12e9d0c2b77d0247786f6
MD5 cffebd18fb4312b1e86823685129ec67
BLAKE2b-256 94c303046488e0894565b825f898f0d7a3e84c0a3c161d95b2c80993ff995acb

See more details on using hashes here.

File details

Details for the file stepwise_regression-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: stepwise_regression-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for stepwise_regression-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 24bcb1e4272dfc950d31c6d1ce199edcc6832a54b754c2843d297901225d4377
MD5 bc3b3a0ad6fe7e012bb2d1dc6e27619a
BLAKE2b-256 65152602cd2539aefe3577af7f50bf0e5e06dda703dde9282d36692bc9d988da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page