Skip to content

SAURABHRAJVARMA/Rainfall-prediction-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒง๏ธ Rainfall Prediction Using Machine Learning

๐Ÿ“Œ Overview

This project predicts daily rainfall using historical weather data from Austin (2019โ€“2023). Multiple machine learning regression models are trained, cross-validated, and compared to select the most accurate model.


๐ŸŽฏ Objective

  • Predict rainfall (precip) using meteorological features
  • Compare baseline and advanced ML models
  • Select the best-performing model using cross-validation

๐Ÿ“Š Dataset

  • File: Austin_2019_2023.csv
  • Location: Austin, USA
  • Time Period: January 2019 โ€“ July 2023
  • Features:
    • tempmax
    • tempmin
    • humidity
    • dew
  • Target:
    • precip (Rainfall)

๐Ÿง  Models Used

  • Linear Regression (Baseline)
  • Random Forest Regressor
  • Support Vector Regressor (SVR)
  • XGBoost Regressor

๐Ÿ”ฌ Methodology

  1. Data preprocessing and missing value handling
  2. Trainโ€“test split (80/20)
  3. 5-fold cross-validation
  4. Model evaluation using RMSE and Rยฒ
  5. Model comparison and selection

๐Ÿš€ How to Run

pip install -r requirements.txt
python src/train_models.py

About

using LinearRegression predicted the rainfall and residual

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors