Skip to content

Instantly share code, notes, and snippets.

@suhaskv
Created January 5, 2021 13:37
Show Gist options
  • Save suhaskv/93ea132a7d8d43596c73407d60c9ec7e to your computer and use it in GitHub Desktop.
Save suhaskv/93ea132a7d8d43596c73407d60c9ec7e to your computer and use it in GitHub Desktop.
VSB Power Line Blog - Bi-directional LSTM implementation
# training data input_shape = (2904, 160, 57)
# test data input_shape = (6779, 160, 57)
inp = Input(shape=(input_shape[1], input_shape[2],))
# training data feature shape = (2904, 98)
# test data feature shape = (6779, 98)
feat = Input(shape=(feat_shape[1],))
bi_lstm_1 = Bidirectional(LSTM(128, return_sequences=True), merge_mode='concat')(inp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment