Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from keras.models import Sequential
- from keras.layers import Dense, Activation
- model_1 = Sequential([ Dense(32, input_shape=(192,)), Activation('relu'), Dense(47), Activation('softmax'), ])
- model_1.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy'])
- model_1.fit(standardized_X_train, train_y, batch_size=32, epochs=15, verbose=1, validation_data=(standardized_X_test, test_y))
- classes = model.predict(x_test, batch_size=128)
Add Comment
Please, Sign In to add comment