Created
December 13, 2019 06:51
-
-
Save santhalakshminarayana/6e2d4adb6c5f35bcc868b5e341f5c538 to your computer and use it in GitHub Desktop.
Indian Name Generator - Model - Medium
This file contains 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
model = Sequential() | |
model.add(LSTM(units=32, recurrent_dropout=0.5, input_shape=(window, len(int_to_char)))) | |
model.add(Dense(len(int_to_char), activation='softmax')) | |
model.compile(loss='categorical_crossentropy',optimizer='adam') | |
model.fit(X, Y, batch_size=1024, epochs=10 ,steps_per_epoch=3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment