Skip to content

Commit

Permalink
updates for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Jan 5, 2020
1 parent e45f408 commit 9b58506
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dataworkspaces/kits/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
from dataworkspaces.kits.tensorflow1 import add_lineage_to_keras_model_class
# Wrap our model class. This is the only DWS-specific change needed.
keras.Sequential = add_lineage_to_keras_model_class(keras.Sequential)
# We add an optional checkpoint configuration, which will cause checkpoints
# to be written to the workspace's scratch directory and then the best
# checkpoint copied to the results resource.
keras.Sequential = add_lineage_to_keras_model_class(keras.Sequential,
checkpoint_config=CheckpointConfig(model='fashion',
monitor='loss'))
fashion_mnist = keras.datasets.fashion_mnist
Expand Down
2 changes: 1 addition & 1 deletion docs/kits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ TensorFlow

.. automodule:: dataworkspaces.kits.tensorflow
:no-undoc-members:
:members: add_lineage_to_keras_model_class
:members: DwsModelCheckpoint,CheckpointConfig,add_lineage_to_keras_model_class

0 comments on commit 9b58506

Please sign in to comment.