Created
February 23, 2018 09:40
-
-
Save Tony607/24ec9cfa4d3565992745f72c417ee340 to your computer and use it in GitHub Desktop.
source: How to generate realistic yelp restaurant reviews with Keras | DLology
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
for iteration in range(1, 20): | |
print('Iteration', iteration) | |
with open("../dataset/short_reviews_shuffle.txt") as f: | |
for chunk in iter(lambda: f.read(90000), ""): | |
X, y = getDataFromChunk(chunk) | |
model.fit(X, y, batch_size=128, epochs=1, callbacks=callbacks_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment