You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sagemaker/mxnet/README.rst
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -599,13 +599,16 @@ The code executed from your main guard needs to:
599
599
3. Save the model
600
600
601
601
Hyperparameters will be passed as command-line arguments to your training script.
602
-
In addition, the locations for finding input data and saving the model and output data will need to be defined.
602
+
In addition, the locations for finding input data and saving the model and output data will be provided as environment variables rather than as arguments to a function.
603
+
You can find the full list of available environment variables in the `SageMaker Containers README <https://github.com/aws/sagemaker-containers#list-of-provided-environment-variables-by-sagemaker-containers>`__.
604
+
603
605
We recommend using `an argument parser <https://docs.python.org/3.5/howto/argparse.html>`__ for this part.
604
606
Using the ``argparse`` library as an example, the code would look something like this:
605
607
606
608
.. code:: python
607
609
608
610
import argparse
611
+
import os
609
612
610
613
if__name__=='__main__':
611
614
parser = argparse.ArgumentParser()
@@ -616,9 +619,9 @@ Using the ``argparse`` library as an example, the code would look something like
0 commit comments