Skip to content

Commit 0b8d9ef

Browse files
committed
Edit content
1 parent d75aab6 commit 0b8d9ef

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

articles/machine-learning/how-to-use-mlflow-configure-tracking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The authentication process tries the following methods, one after another, until
6363

6464
[!INCLUDE [mlflow-configure-auth](includes/machine-learning-mlflow-configure-auth.md)]
6565

66-
If you'd rather use a certificate instead of a secret, you can configure the following environment variables:
66+
If you'd rather use a certificate than a secret, you can configure the following environment variables:
6767

6868
- Set `AZURE_CLIENT_CERTIFICATE_PATH` to the path of a file that contains the certificate and private key pair in Privacy Enhanced Mail (PEM) or Public-Key Cryptography Standards 12 (PKCS #12) format.
6969
- Set `AZURE_CLIENT_CERTIFICATE_PASSWORD` to the password of the certificate file, if it uses a password.
@@ -97,15 +97,15 @@ All MLflow runs are logged to the active experiment. By default, runs are logged
9797

9898
> [!TIP]
9999
>
100-
> When you use the Azure Machine Learning CLI v2, to submit jobs, you can set the experiment name by using the `experiment_name` property in the YAML definition of the job. You don't have to configure it in your training script. For more information, see [YAML: display name, experiment name, description, and tags](reference-yaml-job-command.md#yaml-display-name-experiment-name-description-and-tags).
100+
> When you use the Azure Machine Learning CLI v2 to submit jobs, you can set the experiment name by using the `experiment_name` property in the YAML definition of the job. You don't have to configure it in your training script. For more information, see [YAML: display name, experiment name, description, and tags](reference-yaml-job-command.md#yaml-display-name-experiment-name-description-and-tags).
101101
102102

103103
# [MLflow SDK](#tab/mlflow)
104104

105105
Use the MLflow [`mlflow.set_experiment()`](https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.set_experiment) command to configure your experiment.
106106

107107
```python
108-
experiment_name = 'experiment_with_mlflow'
108+
experiment_name = "experiment_with_mlflow"
109109
mlflow.set_experiment(experiment_name)
110110
```
111111

articles/machine-learning/includes/machine-learning-mlflow-configure-auth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.author: fasantia
99
For interactive jobs where there's a user connected to the session, you can rely on interactive authentication. No further action is required.
1010

1111
> [!WARNING]
12-
> *Interactive browser* authentication blocks code execution when it prompts for credentials. This approach isn't suitable for authentication in unattended environments like training jobs. We recommend that you configure a different authentication mode.
12+
> *Interactive browser* authentication blocks code execution when it prompts for credentials. This approach isn't suitable for authentication in unattended environments like training jobs. We recommend that you configure a different authentication mode in those environments.
1313
1414
For scenarios that require unattended execution, you have to configure a service principal to communicate with Azure Machine Learning.
1515

@@ -36,4 +36,4 @@ export AZURE_CLIENT_SECRET="<Azure-client-secret>"
3636
> [!TIP]
3737
> When you work in shared environments, we recommend that you configure these environment variables at the compute level. As a best practice, manage them as secrets in an instance of Azure Key Vault.
3838
>
39-
> For instance, in Azure Databricks you can use secrets in environment variables as follows in the cluster configuration: `AZURE_CLIENT_SECRET={{secrets/<scope-name>/<secret-name>}}`. For more information about implementing this approach in Azure Databricks, see [Reference a secret in an environment variable](/azure/databricks/security/secrets/secrets#reference-a-secret-in-an-environment-variable) or refer to documentation for your platform.
39+
> For instance, in Azure Databricks you can use secrets in environment variables as follows in the cluster configuration: `AZURE_CLIENT_SECRET={{secrets/<scope-name>/<secret-name>}}`. For more information about implementing this approach in Azure Databricks, see [Reference a secret in an environment variable](/azure/databricks/security/secrets/secrets#reference-a-secret-in-an-environment-variable), or refer to documentation for your platform.

articles/machine-learning/includes/machine-learning-mlflow-configure-tracking.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ ms.author: fasantia
5858
from azure.identity import DefaultAzureCredential
5959
6060
# Enter information about your Azure Machine Learning workspace.
61-
subscription_id = '<subscription-ID>'
62-
resource_group = '<resource-group-name>'
63-
workspace_name = '<workspace-name>'
61+
subscription_id = "<subscription-ID>"
62+
resource_group = "<resource-group-name>"
63+
workspace_name = "<workspace-name>"
6464
6565
ml_client = MLClient(credential=DefaultAzureCredential(),
6666
subscription_id=subscription_id,
@@ -97,10 +97,10 @@ ms.author: fasantia
9797
> If you use a private link-enabled workspace, the MLflow endpoint also uses a private link to communicate with Azure Machine Learning. As a result, the tracking URI uses a format that's different from the one in this article. In this case, you need to use the Azure Machine Learning SDK for Python or the Azure Machine Learning CLI v2 to get the tracking URI.
9898

9999
```python
100-
region = '<region>'
101-
subscription_id = '<subscription-ID>'
102-
resource_group = '<resource-group-name>'
103-
workspace_name = '<workspace-name>'
100+
region = "<region>"
101+
subscription_id = "<subscription-ID>"
102+
resource_group = "<resource-group-name>"
103+
workspace_name = "<workspace-name>"
104104
105105
mlflow_tracking_uri = f"azureml://{region}.api.azureml.ms/mlflow/v1.0/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.MachineLearningServices/workspaces/{workspace_name}"
106106
```

0 commit comments

Comments
 (0)