You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4.**Holiday** - boolean feature tells weather holiday in switzerland on that date
14
+
5.**Month** - categorical feature tells data of which month [categories: Jan, Feb, ... , Dec]
15
+
6.**Day** - categorical feature tells data of which day [categories: Mon, Tues, Wed, Thrus, Fri, Sat, Sun]
16
+
7.**Hour** - categorical feature tells data of which hour [categories: 0, 1, 2, ... , 23]
17
+
18
+
### Dataset Source
19
+
You can use already preprocessed data present in `data` folder with name `actual_dataset.csv` .
20
+
21
+
**Feature Vector 77 dimensional at each timestamp:**\
22
+
actual_load - 1 feature \
23
+
8 cities temperature - 8 features \
24
+
8 cities weather icon one hot encoding - (8 cities x 3 categories of icon) = 24 features \
25
+
holiday - 1 feature \
26
+
weekday one hot encoding - 7 features \
27
+
hour one hot encoding - 24 features \
28
+
month one hot encoding - 12 features
29
+
30
+
**NOTE:** Please ignore `entsoe` feature column in `actual_dataset.csv`.
31
+
32
+
33
+
## Train Load Forecasting Model
34
+
1. change `DATASET_SPLIT_DATE` in `constants.py` according to how you want to split train and test dataset.
35
+
2. Simply Run
36
+
```shell
37
+
python forecasting.py
38
+
```
39
+
3. It will save trained model weights in`output/load_forecasting_model_weights.h5`. save `output/loss_epoch_curve.png` and `output/actual_predicted_load.png` images.
40
+
41
+
42
+
## Generate Adversarial Datasets
43
+
1. Simply Run:
44
+
```shell
45
+
python adversarial.py
46
+
```
47
+
2. It will generate adversarial datasets forvarious temperature variationin`data` folder. For Ex: `adversarial_dataset_temp_1.csv` means generate adversarial temperature dataset with 1 Fahrenheit change in temperature.
48
+
49
+
50
+
## Results
51
+
Check `results.ipynb` file to see various plots like:
0 commit comments