Weather Prediction Australia

Jul 24, 2022 Β· 3 min read
Weather Prediction Australia

Creating a fully-automated system that can use today’s weather data for a given location to predict whether it will rain at the location tomorrow.


⚠️ Frameworks and Libraries

  • Scikit-Learn: Scikit-learn (Sklearn) is the most useful and robust library for machine learning in Python. It provides a selection of efficient tools for machine learning and statistical modeling including classification, regression, clustering and dimensionality reduction via a consistence interface in Python.
  • Matplotlib : Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
  • Numpy: Caffe-based Single Shot-Multibox Detector (SSD) model used to detect faces
  • Pandas: pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.
  • Seaborn : Seaborn is a library for making statistical graphics in Python. It builds on top of matplotlib and integrates closely with pandas data structures.
  • Plotly : The plotly Python library is an interactive, open-source plotting library that supports over 40 unique chart types covering a wide range of statistical, financial, geographic, scientific, and 3-dimensional use-cases.

📁 Datasets

πŸ”„ Source

This dataset is a collected from Kaggle repository named Rain In Australia. This is a collection of daily weather data from previous 10 years in Australia.


📖 Data Preprocessing

Data pre-processing is an important step for the creation of a machine learning model. Initially, data may not be clean or in the required format for the model which can cause misleading outcomes. In pre-processing of data, we transform data into our required format. It is used to deal with noises, duplicates, and missing values of the dataset. Data pre-processing has the activities like importing datasets, splitting datasets, attribute scaling, etc. Preprocessing of data is required for improving the accuracy of the model.


πŸš€Β  Installation

The Code is written in Python 3.7. If you don’t have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:

  1. Clone the repo
git clone https://github.com/Chaganti-Reddy/Weather-Prediction-Australia.git
  1. Change your directory to the cloned repo
cd Weather-Prediction-Australia
  1. Now, run the following command in your Terminal/Command Prompt to install the libraries required
python3 -m virtualenv my_env

source my_env/bin/activate

pip3 install -r requirements.txt

💡 How to Run

  1. Open terminal. Go into the cloned project directory and type the following command:
python3 Weather-Prediction.py

πŸ“‚ Directory Tree

β”œβ”€β”€ assets
β”‚Β Β  β”œβ”€β”€ main1.jpg
β”‚Β Β  β”œβ”€β”€ main.png
β”‚Β Β  β”œβ”€β”€ Sigmoid.png
β”‚Β Β  └── Training.png
β”œβ”€β”€ aussie_rain.joblib
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ test_inputs.parquet
β”œβ”€β”€ test_targets.parquet
β”œβ”€β”€ train_inputs.parquet
β”œβ”€β”€ train_targets.parquet
β”œβ”€β”€ val_inputs.parquet
β”œβ”€β”€ val_targets.parquet
β”œβ”€β”€ weather-dataset-rattle-package
β”‚Β Β  └── weatherAUS.csv
β”œβ”€β”€ Weather-Prediction.ipynb
└── Weather-Prediction.py