Professional Documents
Culture Documents
Prediction of Wind Speed of A Germany Location Near Nuremberg
Prediction of Wind Speed of A Germany Location Near Nuremberg
ID in NREL – 674698
Dataset:
Dataset is used here of year 2019. The attributes are taken as follows: Year, Month, Day, Hour,
Minute, GHI, Cloud Type, Wind Speed, Precipitable Water, Wind Direction, Relative Humidity,
Temperature and Pressure. So, there is 13 attributes that would the columns of dataset and there
are 8760 rows with an hour interval.
Firstly, any column with null values is removed, then the rows with any null values are removed.
Then the Year, Month and Day column are combined to make a Date column. Column Year is
dropped as the year is same throughout the data. A column “time_idx” is made with the index of
dataframe as the series of observation time.
TimeSeriesDataset:
The dataframe is needed to pass as a time series dataset in Pytorch forecasting model. The
arguments are given as follows:
Optimum learning rate is found by setting minimum learning rate as 1e-6 and maximum learning
rate as 30. Referring the graphs in the output the hyperparameters are tuned and learning rate is
set. Optimal learning rate can be different on every run, So, this should be ensured carefully from
the graph on each run.
Training and Loading the Model with dataset:
The dataset is fed to the model and training is done. Then the best model is loaded from checkpoint
according to the validation loss.