Backwards Regression Python Library Version 0.2.0 - Automated feature selection in linear and logistic regression models.
The Backwards Regression Python Library is an open-source toolkit for automated feature selection in regression models. It supports both linear and logistic regression, dynamically selecting the appropriate method based on the target variable, and allows users to specify the optimization method.
Installation
pip install backwards_regression==0.2.0
Load Package
## Load Package
from backwards_regression import fit_logistic_regression
from backwards_regression import fit_linear_regression
Usage
## (Linear) With interactions included - set to True and Without Interactions included - set to False
result, dropped_vars = fit_linear(X, y, threshold_in=0.01, threshold_out=0.05, include_interactions=True, verbose=True, method='pinv')
## Print Selected features
print("Final included features:", result)
## Print Eliminated features
print("Dropped variables:", dropped_vars)
## (Logistic) With interactions included - set to True and Without Interactions included - set to False
result, dropped_vars = fit_logistic(X, y, threshold_in=0.01, threshold_out=0.05, include_interactions=True, verbose=True, method='bfgs')
## Print Selected features
print("Final included features:", result)
## Print Eliminated features
print("Dropped variables:", dropped_vars)
Key Features
- Automated backward regression for linear and logistic regression models.
- Inclusion and exclusion of features based on user-defined significance thresholds.
- Optional specification of optimization method for model fitting.
- Optional inclusion of interaction terms for enhanced model complexity.
This library is suitable for data scientists, researchers, and practitioners working with regression problems who seek a streamlined approach to feature selection. The library intelligently adapts to the nature of the target variable, supporting both linear and logistic regression models, and allows for customization in the regression fitting process.
Documentation & Examples
For documentation and usage examples, visit the GitHub repository: https://github.com/knowusuboaky/backwards_regression-0.2.0
Author: Kwadwo Daddy Nyame Owusu - Boakye
Email: kwadwo.owusuboakye@outlook.com
License: MIT
Metadata
Release files for backwards-regression 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| backwards_regression-0.2.0.tar.gz | 4.1 kB | Without provenance | Details for backwards_regression-0.2.0.tar.gz |
Release files / backwards_regression-0.2.0.tar.gz
| Download URL | backwards_regression-0.2.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c823258599ac14e16ba4a047acbf71aa9423afd4e826ac9de7a0192dfdccd507
|
|
BLAKE2b-256 checksum How to use checksums |
3e26298112dc4eaeb55f3754391a4a9cae6f50c0828d358eb2a96d470ffab490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for backwards-regression 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.