Skip to content

suyxcode-18/Rain-Fall-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌧️ Rainfall Prediction Project

  • Predicting whether it will rain tomorrow using Machine Learning.

📌 Project Overview

  • This project aims to predict Rainfall (Yes/No) using weather data.

  • Since the output is binary, we use Logistic Regression, which is ideal for classification problems.

  • The model is trained on important weather features such as:

  • 🌡️ Temperature (Max & Min)

  • 💧 Precipitation

  • 🌬️ Wind Speed

The goal is to build a simple and accurate ML model that helps forecast rainfall.

🎯 Project Objective

  • To analyze historical weather data

  • To train a machine learning model

  • To predict if it will rain the next day

  • To deploy the model using Streamlit/GitHub/Railway (optional)

🧠 Machine Learning Approach

1️⃣ Data Preprocessing

  • Handled missing values

  • Selected required numerical features

  • Standardized data

  • Split into Train/Test sets

  • 2️⃣ Model Used

✔ Logistic Regression (Binary Classifier) It works well because the target variable has only two classes: Rain or No Rain.

  • 3️⃣ Evaluation

  • Accuracy Score

  • Confusion Matrix

  • Classification Report

The model performs well for basic prediction on weather datasets.

🛠️ Tech Stack

  • Python 3.x
  • NumPy
  • Pandas
  • Matplotlib / Seaborn
  • Scikit-Learn
  • Streamlit (for web app)

📂 Project Structure

├── dataset.csv
├── app.py
├── model.pkl
├── requirements.txt
├── README.md

🚀 How to Run the Project Locally 🔧 Step 1: Install Dependencies pip install -r requirements.txt

▶ Step 2: Run Streamlit App streamlit run app.py

🌐 Deployment

  • This project can be deployed on:
  • Railway
  • Render
  • Streamlit Cloud
  • GitHub Pages (only frontend)

🖥️ Input Features in the App

  • Max Temperature
  • Min Temperature
  • Rainfall (Precipitation)
  • Wind Speed
  • The app predicts:

👉 Rainfall Tomorrow: Yes / No

🧾 Conclusion

This project demonstrates how simple weather features can be used to predict rainfall using machine learning. Logistic Regression provides a reliable and efficient solution for binary classification.

🌐 Live Demo

You can try the deployed Rainfall Prediction System here:

👉 Live App:https://rainfall-prediction-app-4cff.onrender.com

About

The core goal is to determine whether it will rain or not (Yes/No). Logistic Regression is used because it is a binary classifier, making it suitable for this type of problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors