This project demonstrates how to use Streamlit to create a web application for forecasting energy demand of Turkey using machine learning techniques. The application loads a pre-trained machine learning model and allows users to input parameters such as hour, day of the week, and month to predict energy demand.
-
Clone the repository:
https://github.com/glider024/Forecasting-demands.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run appp.py
-
Open your web browser and go to
http://localhost:8503to access the Streamlit app. -
Use the slider to input the parameters for hour, day of the week, and month.
-
The app will display the predicted energy demand based on the input parameters.
appp.py: Main Python script containing the Streamlit application code.turkey energy consumption.csv: Dataset containing Turkey's energy demand data.random_forest_model.joblib: Pre-trained Random Forest model for energy demand forecasting, saved in joblib formatrequirements.txt: List of Python packages required for running the application.
Energy Forecasting EDA .ipynb: Jupyter Notebook containing exploratory data analysis (EDA) of the energy demand dataset. It includes data visualization about the data
- Streamlit
- pandas
- scikit-learn