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/overview.rst
+61-24
Original file line number
Diff line number
Diff line change
@@ -183,45 +183,57 @@ Here is an example:
183
183
# When you are done using your endpoint
184
184
algo.delete_endpoint()
185
185
186
-
Git Support
187
-
-----------
188
-
If you have your training scripts in your GitHub repository, you can use them directly without the trouble to download
189
-
them to local machine. Git support can be enabled simply by providing ``git_config`` parameter when initializing an
190
-
estimator. If Git support is enabled, then ``entry_point``, ``source_dir`` and ``dependencies`` should all be relative
191
-
paths in the Git repo. Note that if you decided to use Git support, then everything you need for ``entry_point``,
192
-
``source_dir`` and ``dependencies`` should be in a single Git repo.
186
+
Use Scripts Stored in a Git Repository
187
+
--------------------------------------
188
+
When you create an estimator, you can specify a training script that is stored in a GitHub or other Git repository as the entry point for the estimator, so that you don't have to download the scripts locally.
189
+
If you do so, source directory and dependencies should be in the same repo if they are needed. Git support can be enabled simply by providing ``git_config`` parameter
190
+
when creating an ``Estimator`` object. If Git support is enabled, then ``entry_point``, ``source_dir`` and ``dependencies``
191
+
should be relative paths in the Git repo if provided.
193
192
194
-
Here are ways to specify ``git_config``:
193
+
The ``git_config`` parameter includes fields ``repo``, ``branch``, ``commit``, ``2FA_enabled``, ``username``,
194
+
``password`` and ``token``. The ``repo`` field is required. All other fields are optional. ``repo`` specifies the Git
195
+
repository where your training script is stored. If you don't provide ``branch``, the default value 'master' is used.
196
+
If you don't provide ``commit``, the latest commit in the specified branch is used.
195
197
196
-
.. code:: python
198
+
``2FA_enabled``, ``username``, ``password`` and ``token`` are used for authentication. Set ``2FA_enabled`` to 'True' if
199
+
two-factor authentication is enabled for the GitHub (or other Git) account, otherwise set it to 'False'.
200
+
If you do not provide a value for ``2FA_enabled``, a default value of 'False' is used.
0 commit comments