This project implements a weather prediction system that predicts the temperature based on real-time weather data, including features like humidity, wind speed, and day-related features (day of the week, month). It uses a pre-trained machine learning model (SGD Regressor) to predict the temperature and compares the predicted temperature with the actual temperature fetched from a public weather API (OpenWeatherMap).
- Fetch real-time weather data for a specific city.
- Predict the temperature using a pre-trained machine learning model.
- Display actual vs predicted temperatures using a line chart.
- Show model performance metrics (Mean Absolute Error, Mean Squared Error).
- Interactive user interface using Streamlit.
- Python 3.8+
pandas
streamlit
requests
scikit-learn
joblib
You can install the required dependencies using the following command:
pip install -r requirements.txt