Skip to content

selvan-01/regression-model-selection

Repository files navigation


πŸ“Š Regression Model Selection Web App

An advanced Machine Learning web application built using Streamlit that compares multiple regression models and identifies the best-performing model based on RΒ² score.


πŸš€ Project Overview

This project allows users to:

  • Upload any dataset (CSV format)
  • Select the target variable dynamically
  • Train multiple regression models
  • Compare their performance
  • Automatically identify the best model

πŸ€– Models Used

  • Linear Regression
  • Polynomial Regression (Degree = 4)
  • Random Forest Regression
  • Decision Tree Regression
  • Support Vector Regression (SVR with scaling)

πŸ“Š Features

  • πŸ“‚ Upload your own dataset
  • βš™οΈ Dynamic target column selection
  • πŸ“‰ Adjustable train-test split
  • πŸ€– Multiple model training
  • πŸ“Š Performance comparison using RΒ² score
  • πŸ† Best model detection
  • πŸ“ˆ Interactive bar chart visualization
  • 🎨 Modern UI with custom styling

πŸ› οΈ Tech Stack

  • Python
  • Streamlit
  • Pandas
  • NumPy
  • Scikit-learn
  • Matplotlib

πŸ“ Project Structure

Regression-Model-Selection/ β”‚ β”œβ”€β”€ app.py β”œβ”€β”€ dataset.csv β”œβ”€β”€ requirements.txt └── README.md


βš™οΈ Installation & Setup

  1. Clone the repository:

git clone https://github.com/selvan-01/regression-model-selection.git cd regression-model-selection

  1. Install dependencies:

pip install -r requirements.txt

  1. Run the application:

streamlit run app.py


πŸ“Œ How It Works

  1. Upload your dataset (CSV)
  2. Select the target column
  3. Click "Train & Compare Models"
  4. View model performance
  5. Identify the best regression model automatically

πŸ“ˆ Evaluation Metric

RΒ² Score (Coefficient of Determination) is used to evaluate model performance.


🌟 Future Improvements

  • Add more ML models (XGBoost, Gradient Boosting)
  • Hyperparameter tuning
  • Download predictions feature
  • Model saving/loading
  • Deployment on cloud platforms

πŸ”— Links

πŸ‘¨β€πŸ’» Author

S. Senthamil Selvan AI | Data Science

Portfolio: https://senthamill.vercel.app/


πŸ“£ Connect with Me

LinkedIn: Senthamil45-linkdin profile


⭐ Support

If you like this project, give it a ⭐ on GitHub and share it!

About

πŸ“Š Regression Model Selection Web App | Compare Multiple ML Models πŸš€ An interactive Machine Learning web app that trains and compares multiple regression models (Linear, Polynomial, Random Forest, Decision Tree, SVR) and automatically selects the best model based on RΒ² score. Built with Python, Scikit-learn & Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors