Skip to content

Predict Global Active Power at the time (t) given the Global Active Power measurement and other features at the prior time step(t-1)

Notifications You must be signed in to change notification settings

abrhaleitela/Time-Series-using-LSTM-Global-Active-Power-prediction-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Time-Series-using-LSTM-Global-Active-Power-prediction-

Predict Global Active Power at the time (t) given the Global Active Power measurement and other features at the prior time step(t-1)

Preprocessing steps:

• I have deleted all rows having NaN values.

• I have also deleted ‘Date’ and ‘Time’ column as the data is sorted by date-time.

• And lastly, I have shifted the ‘Global_active_power’ column to form the output label as y.

Model architecture and parameters used for training the model:

• Model is LSTM network with 100 neurons input layer and 15% dropout and 1 Dense output layer.

• Input shape for our network is = [sample_size, time_step = 1, number_of_features = 7]

• I have used ‘Adam’ optimizer with ‘mean squared error’ loss function.

• Epochs = 5

• Batch_size=128

Visualization of the comparison between the predicted and the actual values of our test dataset (300 sample from test dataset):

Give it a star if you like it.

About

Predict Global Active Power at the time (t) given the Global Active Power measurement and other features at the prior time step(t-1)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages