This project uses recurrent neural networks (RNNs) to predict daily temperatures based on historical weather data.
To run the project, you need to have the following installed:
- Python 3
- Django
- Pandas
- TensorFlow
-
Clone the project repository:
git clone https://github.com/BetikuOluwatobi/Daily-Temperature-Forecast-Using-Recurrent-Neural-Networks.git
-
Install the project dependencies:
pip install django pandas tensorflow
-
Run the project:
python manage.py runserver
This will start the Django development server. Navigate to "http://localhost:8000/" in a web browser to access the application.
Here are the steps involved in the development of the daily temperature forecasting model using RNN:
-
Data Collection: Historical weather data was collected from 2015-2019, including daily temperature readings and other relevant variables.
-
Data Preprocessing: The collected data was cleaned, preprocessed, and split into training and test sets.
-
Model Selection: A suitable RNN architecture (long short-term memory (LSTM)) was selected, and the hyperparameters of the model were configured.
-
Model Training: The RNN model was trained using the training set, adjusting the weights of the neural network to minimize the loss function.
-
Model Evaluation: The performance of the trained model was evaluated on the test set using the root mean squared error (RMSE) metric.
-
Model Prediction: The trained model was used to predict the daily temperature for future days.
-
Model Refinement: The model was refined by adjusting the hyperparameters, changing the architecture, or collecting more data, and the training and evaluation process was repeated.
-
Make sure Docker is installed on your system.
-
Build the Docker image:
docker build -t daily_temp_forecast .
-
Run the Docker container:
docker run -p 8000:8000 daily_temp_forecast
Navigate to "http://localhost:8000/" in a web browser to access the application.
This project demonstrates the use of recurrent neural networks to forecast daily temperatures based on historical weather data. By following the steps outlined in this README, you can run the project on your local machine or in a Docker container.