Skip to content

Commit

Permalink
disable model plot on server
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS Server authored and AWS Server committed Oct 9, 2018
1 parent 30548f5 commit ed528d6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
Binary file modified k models/exchange/__pycache__/multi_config.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 8 additions & 5 deletions k models/exchange/core/models/multivariate_lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,14 @@ def save_model(

# Save model illustration to png file.
print("Saving model visualization...")
keras.utils.plot_model(
self.core,
to_file=f"{folder}model.png",
show_shapes=True,
show_layer_names=True)
try:
keras.utils.plot_model(
self.core,
to_file=f"{folder}model.png",
show_shapes=True,
show_layer_names=True)
except:
print("Model illustration cannot be saved.")

# Save training history (if any)
if self.hist is not None:
Expand Down
Binary file not shown.

0 comments on commit ed528d6

Please sign in to comment.