Skip to content

Instantly share code, notes, and snippets.

@Tony607
Created February 23, 2018 09:36
Show Gist options
  • Save Tony607/a42c5f49ad84ada980b5f53386b0f820 to your computer and use it in GitHub Desktop.
Save Tony607/a42c5f49ad84ada980b5f53386b0f820 to your computer and use it in GitHub Desktop.
source: How to generate realistic yelp restaurant reviews with Keras | DLology
import keras
from keras import layers
model = keras.models.Sequential()
model.add(layers.LSTM(1024, input_shape=(60, 95),return_sequences=True))
model.add(layers.LSTM(1024, input_shape=(60, 95)))
model.add(layers.Dense(95, activation='softmax'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment