Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. model = Sequential()
  2. model.add(Masking(mask_value=0, input_shape=(timesteps, features)))
  3. model.add(LSTM(100, dropout=0.2, recurrent_dropout=0.2,return_sequences=True))
  4. model.add(Dense(features, activation='softmax'))
  5. model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
  6. model.summary()
  7.  
  8. ValueError: Error when checking target: expected dense_1 to have 3 dimensions, but got array with shape (14, 5)
  9.  
  10. ValueError: Invalid shape for y: (14, 1, 5)
  11.  
  12. model.add(TimeDistributed(LSTM(100, dropout=0.2, recurrent_dropout=0.2,return_sequences=True)))
  13.  
  14. TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement