Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. from tensorflow.keras.models import Sequential
  2. from tensorflow.keras.layers import Dense, Dropout, Softmax, BatchNormalization
  3. from tensorflow.keras.optimizers import Adam
  4.  
  5. model = Sequential()
  6. model.add(Dense(128, activation='relu', input_shape=(656,)))
  7. model.add(BatchNormalization())
  8. model.add(Dropout(0.2))
  9. model.add(Dense(64, activation='relu'))
  10. model.add(BatchNormalization())
  11. model.add(Dropout(0.2))
  12. model.add(Dense(16, activation='relu'))
  13. model.add(BatchNormalization())
  14. model.add(Dropout(0.2))
  15. model.add(Dense(5, activation='softmax'))
  16. model.compile(Adam(), loss='sparse_categorical_crossentropy')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement