Skip to main content

RegressModel

RegressModel is a Python package designed for streamlined regression analysis. It facilitates the process of training and evaluating multiple regression models on a dataset, providing a comprehensive comparison of their performance. This package is particularly useful for data scientists and machine learning practitioners who need to quickly assess the best regression model for their specific data.

Features

  • Easy comparison of various regression models.
  • Includes common models like Linear Regression, Lasso, Ridge, SVR, Random Forest, Decision Tree, and XGBoost.
  • Outputs performance metrics like R2 score, RMSE, MSE, MAE, and cross-validation scores.

Installation

You can install RegressModel using pip:

pip install regressmodel

Usage

Here is a simple example of how to use RegressModel:

from regresseasy import reg_modelling
import pandas as pd
from sklearn.model_selection import train_test_split

# Sample dataset
df = pd.read_csv('your_dataset.csv')
X = df.drop('target_column', axis=1)
y = df['target_column']

# Splitting the dataset
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

# Example usage of the function
# Ensure that you have defined X_train, y_train, X_test, y_test before calling this function
model_results = reg_modelling(X_train, y_train, X_test, y_test)

# # Access specific model results, e.g., Linear Regression
print("Linear Regression Results:", model_results["LinearRegression"])


# The results variable will contain performance metrics of the models

Requirements

Python 3.6 or higher scikit-learn numpy xgboost

Contributing

Contributions to RegressModel are welcome! Feel free to fork the repository and submit pull requests.

License

RegressModel is licensed under the MIT License - see the LICENSE file for details.

Author

SaiKoushikGandikota

Metadata

Release files for regresseasy 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for regresseasy 0.7
File Size Uploaded
regresseasy-0.7.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for regresseasy 0.7
File Interpreter ABI Platform
regresseasy-0.7-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / regresseasy-0.7.tar.gz

Download URL regresseasy-0.7.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
af97d1ee260bf5895d0dad2d710dbe9f930feae6b2a4dd14b265dad9f30f64d8
BLAKE2b-256 checksum
How to use checksums
2f27950c3121d115f25ca013ac68204a08d679eab3767ed580bda762f547355d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release files / regresseasy-0.7-py3-none-any.whl

Download URL regresseasy-0.7-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cd2ae4474c5aefbfd992c5d11cb1c3c4e89c539fe7d4cb6658ce3d19c6493cd
BLAKE2b-256 checksum
How to use checksums
1395bc3e5b8a035df429b66f117d3e650c26195a0b934c739aa0ced5c5a5ac33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page