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.
Website Link: "https://rainy-brain.herokuapp.com/"
- Front-End: HTML, CSS, Bootstrap
- Back-End: Flask
- IDE: Jupyter notebook, Pycharm
- 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
Rainfall Prediction in Australia dataset from Kaggle
- 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
- 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
- The model is deployed using Flask at Heroku server at the link