Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EJmpa authored Dec 14, 2023
1 parent f85dfb0 commit a756c26
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,35 @@ Before running the app, ensure you have the required libraries installed. You ca

```bash
pip install -r requirements.txt

Usage
Load Dataset:
The app loads a dataset from a CSV file named cleaned_dataset_with_incomegroup.csv. The data is sorted by the year and set as the index.

Sidebar Configuration:
The sidebar allows you to configure the ARIMA model by selecting a country and adjusting the electrification level. These parameters influence the training of the ARIMA model.

ARIMA Model Building:
The ARIMA model is built based on the selected country and electrification level. The data is split into training and testing sets, and the model is fitted to the training data.

Model Evaluation:
The Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) of the ARIMA model are displayed to assess the model’s performance on the test set.

Forecasting:
The app extends the time index to forecast the economic gap for the next 20 years. The predicted values are visualized using a dashed orange line on the economic gap plot.

How to Run
To run the app, execute the following command:

streamlit run your_script_name.py

Replace your_script_name.py with the filename of your script containing the Streamlit app.

Dependencies
streamlit
pytz
pandas
numpy
matplotlib
statsmodels
scikit-learn

0 comments on commit a756c26

Please sign in to comment.