Code Monkey home page Code Monkey logo

rain-prediction's Introduction

Rain-Prediction

A project on predicting whether it will rain tomorrow or not by using the Rainfall in Australia dataset This project is tested over lot of ml models like catboost, xgboost, random forest, support vector classifier, etc.. Out of these models catboost performed very well giving an AUC score around and ROC score of 89 far better than others. Here due to my system compatibility is very low. So I havent done hyperparameter tuning. But it is highly recommended to do it if possible.

Testing values

Rainy Day:

Predictor Values for Rainy Day

Sunny Day:

Predictor Values for Sunny Day

Tech Stack

  • Front-End: HTML, CSS, Bootstrap
  • Back-End: Flask
  • IDE: Jupyter notebook, Pycharm

How to run this app

  • First create a virtual environment by using this command:
  • conda create -n myenv python=3.6
  • Activate the environment using the below command:
  • conda activate myenv
  • Then install all the packages by using the following command
  • pip install -r requirements.txt
  • Now for the final step. Run the app
  • python app.py

Some screenshots of the app

  • Landing Page: Landing Page
  • About Rainy Brain: About
  • Dashboard: Dashboard
  • Developer: Developer
  • Predictor: Predictor
  • Result: Result

Workflow

Data Collection:

Rainfall Prediction in Australia dataset from Kaggle

Data Preprocessing:

  • Missing Values Handled by Random Sample imputation to maintain the variance
  • Categorical Values like location, wind direction are handled by using Target guided encoding
  • Outliers are handled using IQR and boxplot
  • Feature Selection and was done but didnt perform well it can be seen in testing_notebook/Prediction.ipynb
  • Feature Scaling didnt give a lot of difference it also can be seen in testing_notebook/RainPrediction1.ipynb
  • Imbalanced Dataset was handled using SMOTE

Model Creation:

  • Different types of models were tried like catboost, random forest, logistic regression, xgboost, support vector machines, knn, naive bayes.
  • Out of these catboost, random forest and support vector machines were top 3
  • The conclusion were made using classification metrics. roc curve and auc score

Model Deployment

  • The model is deployed using Flask at Heroku server at the link

If you like this project please do give a star. I am also giving my LinkedIn profile. If you want we can connect there too

https://www.linkedin.com/in/vasanth-p-90826218b/

rain-prediction's People

Contributors

vasanthengineer4949 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.