Skip to content

Commit f72ffd1

Browse files
committed
Describe user managed dependencies
1 parent 0cd83dd commit f72ffd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/machine-learning/how-to-use-environments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ myenv.docker.base_image="your_base-image"
246246
myenv.docker.base_image_registry="your_registry_location"
247247
```
248248

249-
Alternatively, you can specify a custom Dockerfile. It is simplest to start from one of Azure Machine Learning base images using Docker ```FROM``` command, and then add your own custom steps. Use this approach if you need to install non-Python packages as dependencies.
249+
You can also specify a custom Dockerfile. It's simplest to start from one of Azure Machine Learning base images using Docker ```FROM``` command, and then add your own custom steps. Use this approach if you need to install non-Python packages as dependencies.
250250

251251
```python
252252
# Specify docker steps as a string. Alternatively, load the string from a file.
@@ -262,11 +262,11 @@ myenv.docker.base_dockerfile = dockerfile
262262

263263
### Use user-managed dependencies
264264

265-
In some situations, your custom base image may already contain an Python environment with packages that you want to use.
265+
In some situations, your custom base image may already contain a Python environment with packages that you want to use.
266266

267-
By default, Azure Machine Learning service will build a Conda environment with the dependecies you specified, and will execute the run in that environment instead of using any Python libraries that you installed on the base image.
267+
By default, Azure Machine Learning service will build a Conda environment with dependencies you specified, and will execute the run in that environment instead of using any Python libraries that you installed on the base image.
268268

269-
To use your own installed packages, set the parameter `Environment.python.user_managed_dependencies = True`. You must ensure that the base image contains a Python interpreter, and has the packages your training script needs.
269+
To use your own installed packages, set the parameter `Environment.python.user_managed_dependencies = True`. Ensure that the base image contains a Python interpreter, and has the packages your training script needs.
270270

271271
For example, to run in a base Miniconda environment that has NumPy package installed, first specify a Dockerfile with a step to install the package. Then set the user-managed dependencies to `True`.
272272

0 commit comments

Comments
 (0)