backwards-regression


Namebackwards-regression JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/knowusuboaky/backwards_regression-0.2.0
SummaryBackwards Regression Python Library - Automated feature selection in linear and logistic regression models.
upload_time2024-01-23 16:25:21
maintainer
docs_urlNone
authorKwadwo Daddy Nyame Owusu - Boakye
requires_python>=3.7
licenseMIT
keywords statistics modeling regression feature elimination engineering
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```bash
pip install backwards_regression==0.2.0
```

## Load Package
```bash
## Load Package
from backwards_regression import fit_logistic_regression
from backwards_regression import fit_linear_regression
```

## Usage
```bash
## (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)
```
```bash
## (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


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/knowusuboaky/backwards_regression-0.2.0",
    "name": "backwards-regression",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "statistics modeling regression feature elimination engineering",
    "author": "Kwadwo Daddy Nyame Owusu - Boakye",
    "author_email": "kwadwo.owusuboakye@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/3e/26/298112dc4eaeb55f3754391a4a9cae6f50c0828d358eb2a96d470ffab490/backwards_regression-0.2.0.tar.gz",
    "platform": null,
    "description": "# Backwards Regression Python Library Version 0.2.0 - Automated feature selection in linear and logistic regression models. \r\n\r\nThe 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.\r\n\r\n## Installation\r\n```bash\r\npip install backwards_regression==0.2.0\r\n```\r\n\r\n## Load Package\r\n```bash\r\n## Load Package\r\nfrom backwards_regression import fit_logistic_regression\r\nfrom backwards_regression import fit_linear_regression\r\n```\r\n\r\n## Usage\r\n```bash\r\n## (Linear) With interactions included - set to True and Without Interactions included - set to False\r\nresult, dropped_vars = fit_linear(X, y, threshold_in=0.01, threshold_out=0.05, include_interactions=True, verbose=True, method='pinv')\r\n\r\n## Print Selected features\r\nprint(\"Final included features:\", result)\r\n\r\n## Print Eliminated features\r\nprint(\"Dropped variables:\", dropped_vars)\r\n```\r\n```bash\r\n## (Logistic) With interactions included - set to True and Without Interactions included - set to False\r\nresult, dropped_vars = fit_logistic(X, y, threshold_in=0.01, threshold_out=0.05, include_interactions=True, verbose=True, method='bfgs')\r\n\r\n## Print Selected features\r\nprint(\"Final included features:\", result)\r\n\r\n## Print Eliminated features\r\nprint(\"Dropped variables:\", dropped_vars)\r\n```\r\n\r\n## Key Features\r\n- Automated backward regression for linear and logistic regression models.\r\n- Inclusion and exclusion of features based on user-defined significance thresholds.\r\n- Optional specification of optimization method for model fitting.\r\n- Optional inclusion of interaction terms for enhanced model complexity.\r\n\r\nThis 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.\r\n\r\n## Documentation & Examples\r\nFor documentation and usage examples, visit the GitHub repository: https://github.com/knowusuboaky/backwards_regression-0.2.0\r\nAuthor: Kwadwo Daddy Nyame Owusu - Boakye\\\r\nEmail: kwadwo.owusuboakye@outlook.com\\\r\nLicense: MIT\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Backwards Regression Python Library - Automated feature selection in linear and logistic regression models.",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/knowusuboaky/backwards_regression-0.2.0"
    },
    "split_keywords": [
        "statistics",
        "modeling",
        "regression",
        "feature",
        "elimination",
        "engineering"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e26298112dc4eaeb55f3754391a4a9cae6f50c0828d358eb2a96d470ffab490",
                "md5": "53e230acd48720629201c6833de3856c",
                "sha256": "c823258599ac14e16ba4a047acbf71aa9423afd4e826ac9de7a0192dfdccd507"
            },
            "downloads": -1,
            "filename": "backwards_regression-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "53e230acd48720629201c6833de3856c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4104,
            "upload_time": "2024-01-23T16:25:21",
            "upload_time_iso_8601": "2024-01-23T16:25:21.101541Z",
            "url": "https://files.pythonhosted.org/packages/3e/26/298112dc4eaeb55f3754391a4a9cae6f50c0828d358eb2a96d470ffab490/backwards_regression-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-23 16:25:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "knowusuboaky",
    "github_project": "backwards_regression-0.2.0",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "backwards-regression"
}
        
Elapsed time: 1.23506s