Created
May 30, 2020 19:29
-
-
Save Vsanku01/e73089dd93ed7ad403e1c77ea90430a7 to your computer and use it in GitHub Desktop.
Forecast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
full_scaler = MinMaxScaler() | |
scaled_full_data = full_scaler.fit_transform(df) | |
generator = TimeseriesGenerator(scaled_full_data,scaled_full_data,length=length,batch_size=batch_size) | |
model = Sequential() | |
model.add(LSTM(50,input_shape=(length,n_features))) | |
model.add(Dense(1)) | |
model.compile(optimizer = 'adam',loss='mse',metrics=['accuracy']) | |
model.fit_generator(generator=generator,epochs=50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment