-
-
Save re4388/04e9d648824e540ee686531da8ab661a to your computer and use it in GitHub Desktop.
a16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with tf.Session() as session: | |
| K.set_session(session) | |
| session.run(tf.global_variables_initializer()) | |
| session.run(tf.tables_initializer()) | |
| history = model.fit(train_text, train_label, | |
| validation_data=(test_text, test_label), | |
| epochs=10, | |
| batch_size=32) | |
| model.save_weights('./model.h5') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment