Guest User

Untitled

a guest
Oct 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. from keras.models import Sequential
  2. from keras.layers import Dense, Activation
  3.  
  4. model_1 = Sequential([ Dense(32, input_shape=(192,)), Activation('relu'), Dense(47), Activation('softmax'), ])
  5.  
  6. model_1.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy'])
  7.  
  8. model_1.fit(standardized_X_train, train_y, batch_size=32, epochs=15, verbose=1, validation_data=(standardized_X_test, test_y))
  9.  
  10. classes = model.predict(x_test, batch_size=128)
Add Comment
Please, Sign In to add comment