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: doc/using_mxnet.rst
+94Lines changed: 94 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -801,7 +801,101 @@ The following are optional arguments. When you create an ``MXNet`` object, you c
801
801
SageMaker MXNet Containers
802
802
**************************
803
803
804
+
=======
805
+
806
+
Required arguments
807
+
==================
808
+
809
+
The following are required arguments to the ``MXNet`` constructor. When you create an MXNet object, you must include these in the constructor, either positionally or as keyword arguments.
810
+
811
+
- ``entry_point`` Path (absolute or relative) to the Python file which
812
+
should be executed as the entry point to training.
813
+
- ``role`` An AWS IAM role (either name or full ARN). The Amazon
814
+
SageMaker training jobs and APIs that create Amazon SageMaker
815
+
endpoints use this role to access training data and model artifacts.
816
+
After the endpoint is created, the inference code might use the IAM
817
+
role, if accessing AWS resource.
818
+
- ``train_instance_count`` Number of Amazon EC2 instances to use for
819
+
training.
820
+
- ``train_instance_type`` Type of EC2 instance to use for training, for
821
+
example, 'ml.c4.xlarge'.
822
+
823
+
Optional arguments
824
+
==================
825
+
826
+
The following are optional arguments. When you create an ``MXNet`` object, you can specify these as keyword arguments.
827
+
828
+
- ``source_dir`` Path (absolute or relative) to a directory with any
829
+
other training source code dependencies including the entry point
830
+
file. Structure within this directory will be preserved when training
831
+
on SageMaker.
832
+
- ``dependencies (list[str])`` A list of paths to directories (absolute or relative) with
833
+
any additional libraries that will be exported to the container (default: ``[]``).
834
+
The library folders will be copied to SageMaker in the same folder where the entrypoint is copied.
835
+
If the ``source_dir`` points to S3, code will be uploaded and the S3 location will be used
For information about the dependencies installed in SageMaker MXNet containers, see https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/mxnet/README.rst#sagemaker-mxnet-containers.
Copy file name to clipboardExpand all lines: doc/using_sklearn.rst
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,16 @@ inadvertently run your training code at the wrong point in execution.
97
97
98
98
For more on training environment variables, please visit https://github.com/aws/sagemaker-containers.
99
99
100
+
Using third-party libraries
101
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
+
103
+
When running your training script on SageMaker, it will have access to some pre-installed third-party libraries including ``scikit-learn``, ``numpy``, and ``pandas``.
104
+
For more information on the runtime environment, including specific package versions, see `SageMaker Scikit-learn Docker containers <https://github.com/aws/sagemaker-scikit-learn-container>`__.
105
+
106
+
If there are other packages you want to use with your script, you can include a ``requirements.txte` file in the same directory as your training script to install other dependencies at runtime.
107
+
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``. You can also specify the version of an item to install.
108
+
For information about the format of a ``requirements.txt`` file, see `Requirements Files <https://pip.pypa.io/en/stable/user_guide/#requirements-files>`__ in the pip documentation.
109
+
100
110
Running a Scikit-learn training script in SageMaker
0 commit comments