Skip to content

Instantly share code, notes, and snippets.

@jonathanoheix
Created January 4, 2019 08:28
Show Gist options
  • Save jonathanoheix/6892ee9c8d2767e1e8e28273642b157c to your computer and use it in GitHub Desktop.
Save jonathanoheix/6892ee9c8d2767e1e8e28273642b157c to your computer and use it in GitHub Desktop.
# serialize model structure to JSON
model_json = model.to_json()
with open("model.json", "w") as json_file:
json_file.write(model_json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment