Skip to content

Instantly share code, notes, and snippets.

@philippslang
Last active August 22, 2017 19:19
Show Gist options
  • Save philippslang/c7d8f7969920d53f7092e07d2bd6f6ac to your computer and use it in GitHub Desktop.
Save philippslang/c7d8f7969920d53f7092e07d2bd6f6ac to your computer and use it in GitHub Desktop.
if 1:
model = make_rnn(num_features, num_targets, num_timesteps, num_units)
model.fit(features, targets, epochs=10, batch_size=24, validation_split=0.2)
model.save(FNAME_MODEL)
else:
model = kem.load_model(FNAME_MODEL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment