Skip to content

Commit 281e497

Browse files
authored
acrolinx improvements
1 parent 8afc2bd commit 281e497

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,62 +25,62 @@ Environments are managed and versioned assets within your Machine Learning works
2525

2626
### Types of environments
2727

28-
Environments can broadly be divided into three categories: curated, user-managed, and system-managed.
28+
Environments fall under three categories: curated, user-managed, and system-managed.
2929

30-
Curated environments are pre-created environments that are managed by Azure Machine Learning (AzureML) and are available by default in every workspace.
30+
Curated environments are pre-created environments managed by Azure Machine Learning (AzureML) and are available by default in every workspace.
3131

32-
Intended to be used as is, they contain collections of Python packages and settings to help you get started with various machine learning frameworks.
32+
They contain collections of Python packages and settings to help you get started with various machine learning frameworks and are intended for you to use as is.
3333
These pre-created environments also allow for faster deployment time.
3434

3535
In user-managed environments, you're responsible for setting up your environment and installing every package that your training script needs on the compute target.
3636
Also be sure to include any dependencies needed for model deployment.
37-
These types of environments are represented by two subtypes. For the first type, BYOC (bring your own container), you bring an existing Docker image to AzureML. For the second type, Docker build context based environments, AzureML materializes the image from the context that you provide.
37+
These types of environments have two subtypes. For the first type, BYOC (bring your own container), you bring an existing Docker image to AzureML. For the second type, Docker build context based environments, AzureML materializes the image from the context that you provide.
3838

39-
System-managed environments are used when you want conda to manage the Python environment for you.
40-
A new isolated conda environment is materialized from your conda specification on top of a base Docker image. By default, common properties are added to the derived image.
41-
Note that environment isolation implies that Python dependencies installed in the base image won't be available in the derived image.
39+
When you want conda to manage the Python environment for you, use system-managed environments.
40+
AzureML creates a new isolated conda environment by materializing your conda specification on top of a base Docker image. By default, AzureML adds common properties to the derived image.
41+
Environment isolation implies that Python dependencies installed in the base image aren't available in the derived image.
4242

4343
### Create and manage environments
4444

4545
You can create and manage environments from clients like AzureML Python SDK, AzureML CLI, AzureML Studio UI, VS code extension.
4646

4747
"Anonymous" environments are automatically registered in your workspace when you submit an experiment without registering or referencing an already existing environment.
48-
They won't be listed but may be retrieved by version or label.
48+
They aren't listed but you can retrieve them by version or label.
4949

5050
AzureML builds environment definitions into Docker images.
51-
It also caches the environments in the Azure Container Registry associated with your AzureML Workspace so they can be reused in subsequent training jobs and service endpoint deployments.
52-
Multiple environments with the same definition may result the same image, so the cached image will be reused.
51+
It also caches the environments in the Azure Container Registry associated with your AzureML Workspace so you can reuse them in subsequent training jobs and service endpoint deployments.
52+
Multiple environments with the same definition may result in the same image, so the cached image is reused.
5353
Running a training script remotely requires the creation of a Docker image.
5454

5555
### Reproducibility and vulnerabilities
5656

5757
#### *Vulnerabilities*
5858

59-
Vulnerabilities can be addressed by upgrading to a newer version of a dependency or migrating to a different dependency that satisfies security
59+
You can address vulnerabilities by upgrading to a newer version of a dependency or migrating to a different dependency that satisfies security
6060
requirements. Mitigating vulnerabilities is time consuming and costly since it can require refactoring of code and infrastructure. With the prevalence
6161
of open source software and the use of complicated nested dependencies, it's important to manage and keep track of vulnerabilities.
6262

6363
There are some ways to decrease the impact of vulnerabilities:
6464

6565
- Reduce your number of dependencies - use the minimal set of the dependencies for each scenario.
66-
- Compartmentalize your environment so issues can be scoped and fixed in one place.
66+
- Compartmentalize your environment so you can scope and fix issues in one place.
6767
- Understand flagged vulnerabilities and their relevance to your scenario.
6868

6969
#### *Vulnerabilities vs Reproducibility*
7070

7171
Reproducibility is one of the foundations of software development. While developing production code, a repeated operation must guarantee the same
7272
result. Mitigating vulnerabilities can disrupt reproducibility by changing dependencies.
7373

74-
AzureML's primary focus is to guarantee reproducibility. Environments can broadly be divided into three categories: curated,
74+
AzureML's primary focus is to guarantee reproducibility. Environments fall under three categories: curated,
7575
user-managed, and system-managed.
7676

77-
**Curated environments** are pre-created environments that are managed by Azure Machine Learning (AzureML) and are available by default in every AzureML workspace provisioned.
77+
**Curated environments** are pre-created environments that Azure Machine Learning (AzureML) manages and are available by default in every AzureML workspace provisioned.
7878

79-
Intended to be used as is, they contain collections of Python packages and settings to help you get started with various machine learning frameworks.
79+
They contain collections of Python packages and settings to help you get started with various machine learning frameworks and are intended for you to use as is.
8080
These pre-created environments also allow for faster deployment time.
8181

8282
In **user-managed environments**, you're responsible for setting up your environment and installing every package that your training script needs on the
83-
compute target and for model deployment. These types of environments are represented by two subtypes:
83+
compute target and for model deployment. These types of environments have two subtypes:
8484

8585
- BYOC (bring your own container): the user provides a Docker image to AzureML
8686
- Docker build context: AzureML materializes the image from the user provided content

0 commit comments

Comments
 (0)