An open API service indexing awesome lists of open source software.

https://github.com/jiteshshelke/weather-type-classification-webapp

๐ŸŒฆ๏ธ A Flask-based ML web app for classifying weather types (Sunny, Rainy, Cloudy, Snowy) using multiple models. โ›…โšกโ„๏ธ
https://github.com/jiteshshelke/weather-type-classification-webapp

ai classification data-science decision-trees deep-learning flask iot knn logistic-regression machine-learning ml-models predictive-modeling python random-forest support-vector-machines weather weather-classification weather-forecast

Last synced: about 1 month ago
JSON representation

๐ŸŒฆ๏ธ A Flask-based ML web app for classifying weather types (Sunny, Rainy, Cloudy, Snowy) using multiple models. โ›…โšกโ„๏ธ

Awesome Lists containing this project

README

        

# ๐ŸŒฆ๏ธ Weather Type Classification WebApp





## ๐Ÿš€ Overview
A machine learning-powered web application for predicting weather types based on various atmospheric conditions. Built using Flask and multiple ML models, this app classifies weather into **Rainy โ˜”, Cloudy โ˜๏ธ, Sunny โ˜€๏ธ, and Snowy โ„๏ธ**.

## ๐Ÿ—๏ธ Features
- โœ… Uses Logistic Regression, Decision Tree, Random Forest, SVM, and KNN models.
- โœ… Web-based interface built with Flask & HTML/CSS.
- โœ… User-friendly input form for weather parameters.
- โœ… Real-time predictions.
- โœ… Interactive UI with weather-themed pages.

## ๐Ÿ–ผ๏ธ Screenshots
| Home Page | Prediction Output |
|-----------|------------------|
| ![Home](./images/1.png) | ![Result](./images/2.png) |

## ๐Ÿ› ๏ธ Tech Stack
- **Frontend:** HTML, CSS, JavaScript
- **Backend:** Flask
- **Machine Learning:** Scikit-Learn, Joblib, Pandas, NumPy

## ๐Ÿ“‚ Folder Structure
```
๐Ÿ“ฆ Weather-Type-Classification-WebApp
โ”œโ”€โ”€ ๐Ÿ“‚ static # CSS, JS, and images
โ”œโ”€โ”€ ๐Ÿ“‚ templates # HTML files (home, results pages)
โ”œโ”€โ”€ models # Saved ML models (joblib/pickle format)
โ”œโ”€โ”€ app.py # Flask application
โ”œโ”€โ”€ requirements.txt # Dependencies
โ””โ”€โ”€ README.md # Project documentation
```

## ๐Ÿ”ง Installation & Usage
### 1๏ธโƒฃ Clone the Repository
```sh
git clone https://github.com/yourusername/Weather-Type-Classification-WebApp.git
cd Weather-Type-Classification-WebApp
```
### 2๏ธโƒฃ Install Dependencies
```sh
pip install -r requirements.txt
```
### 3๏ธโƒฃ Run the Application
```sh
python app.py
```
**Open the browser and go to:** `http://127.0.0.1:5000/`

## ๐ŸŽฏ How It Works
1. Enter weather-related inputs in the web form.
2. Click "Predict" to classify the weather type.
3. The app displays the predicted weather category.

## ๐Ÿ› ๏ธ Model Training
- The dataset is preprocessed and split into training and testing sets.
- Different ML models are trained, and the best-performing model is selected.
- The selected model is saved using `joblib`.

## ๐Ÿ† Results & Accuracy
| Model | Accuracy |
|--------|----------|
| Logistic Regression | 85% |
| Decision Tree | 88% |
| Random Forest | 92% |
| SVM | 90% |
| KNN | 87% |

## ๐Ÿค Contribution
Contributions are welcome! Please follow these steps:
1. Fork the repository.
2. Create a new branch.
3. Commit your changes.
4. Open a Pull Request.

## ๐Ÿ“œ License
This project is licensed under the **MIT License**.

---

Made with โค๏ธ by Jitesh Shelke