-
If you are running OSS Metaflow install
pip install metaflow
; If you are runnning it on the Outerbounds Platform, runpip install outerbounds
-
Install other dependencies
pip install -r requirements.txt
python flow.py run
- Metaflow Checkpointing with Keras Callbacks: This flow uses the
@checkpoint
functionality in tandem withe Keras's callback mechanism. The MetaflowKerasCheckpoint class can be plugged into any Keras model called within a Metaflow flow execution to enable checkpointing. - Checkpoint Loading in subsequent
@step
s: The callback exposese thelastest_checkpoint
reference object which is returned byCheckpoint().save()
orcurrent.checkpoint.save()
. This reference object can be set as a data artifact in Metaflow and then be loaded in subsequent steps. The flow.py demonstrates how to load the checkpoint in thetest
step by calling@model(load="best_checkpoint")
.