Skip to content

Commit 01b3de0

Browse files
committed
toc, links, and feedback
1 parent 23263e2 commit 01b3de0

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

articles/machine-learning/concept-expressions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.custom: cliv2, sdkv2
1717

1818
With Azure Machine Learning SDK and CLI v2, you can use _expressions_ when a value may not be known when you're authoring a job or component. When you submit a job or call a component, the expression is evaluated and the value is substituted.
1919

20-
The format for an expression is `${{ <expression> }}`. Some expressions are evaluated on the _client_, when submitting the job or component. Other expressions are evaluated on the _server_ &emdash; the compute where the job or component is running.
20+
The format for an expression is `${{ <expression> }}`. Some expressions are evaluated on the _client_, when submitting the job or component. Other expressions are evaluated on the _server_ (the compute where the job or component is running.)
2121

2222
## Client expressions
2323

@@ -26,7 +26,7 @@ The format for an expression is `${{ <expression> }}`. Some expressions are eval
2626
2727
| Expression | Description | Scope |
2828
| ---- | ---- | ---- |
29-
| `${{inputs.<input_name>}}` | References to an input data asset. | Works for all jobs. |
29+
| `${{inputs.<input_name>}}` | References to an input data asset or model. | Works for all jobs. |
3030
| `${{outputs.<output_name>}}` | References to an output data asset. | Works for all jobs. |
3131
| `${{search_space.<hyperparameter>}}` | References the hyperparameters to use in a sweep job. The hyperparameter values for each trial are selected based on the `search_space`. | Sweep jobs only. |
3232
| `${{parent.inputs.<input_name>}}` | Binds the inputs of a child job (pipeline step) in a pipeline to the inputs of the top-level parent pipeline job. | Pipeline jobs only. |
@@ -46,4 +46,5 @@ For more information on these expressions, see the following articles and exampl
4646
* [Hyperparameter tuning a model](how-to-tune-hyperparameters.md)
4747
* [Tutorial: ML pipelines with Python SDK v2](tutorial-pipeline-python-sdk.md)
4848
* [Create and run component-based ML pipelines (CLI)](how-to-create-component-pipelines-cli.md)
49-
* [Example: Iris batch prediction notebook](https://github.com/Azure/azureml-examples/blob/main/sdk/python/jobs/parallel/2a_iris_batch_prediction/iris_batch_prediction.ipynb)
49+
* [Example: Iris batch prediction notebook](https://github.com/Azure/azureml-examples/blob/main/sdk/python/jobs/parallel/2a_iris_batch_prediction/iris_batch_prediction.ipynb)
50+
* [Example: Pipeline YAML file](https://github.com/Azure/azureml-examples/blob/main/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/pipeline.yml)

articles/machine-learning/concept-ml-pipelines.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Azure Machine Learning pipelines are a powerful facility that begins delivering
7878
+ [Define pipelines with Designer](./how-to-create-component-pipelines-ui.md)
7979
+ Try out [CLI v2 pipeline example](https://github.com/Azure/azureml-examples/tree/sdk-preview/cli/jobs/pipelines-with-components)
8080
+ Try out [Python SDK v2 pipeline example](https://github.com/Azure/azureml-examples/tree/main/sdk/python/jobs/pipelines)
81+
+ Learn about [SDK and CLI v2 expressions](concept-expressions.md) that can be used in a pipeline.
8182
:::moniker-end
8283
:::moniker range="azureml-api-1"
8384
+ [Create and run machine learning pipelines](v1/how-to-create-machine-learning-pipelines.md)

articles/machine-learning/how-to-train-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ In the above examples, you configured:
193193
- `code` - path where the code to run the command is located
194194
- `command` - command that needs to be run
195195
- `environment` - the environment needed to run the training script. In this example, we use a curated or ready-made environment provided by Azure Machine Learning called `AzureML-lightgbm-3.2-ubuntu18.04-py37-cpu`. We use the latest version of this environment by using the `@latest` directive. You can also use custom environments by specifying a base docker image and specifying a conda yaml on top of it.
196-
- `inputs` - dictionary of inputs using name value pairs to the command. The key is a name for the input within the context of the job and the value is the input value. Inputs are referenced in the `command` using the `${{inputs.<input_name>}}` expression. To use files or folders as inputs, you can use the `Input` class.
196+
- `inputs` - dictionary of inputs using name value pairs to the command. The key is a name for the input within the context of the job and the value is the input value. Inputs are referenced in the `command` using the `${{inputs.<input_name>}}` expression. To use files or folders as inputs, you can use the `Input` class. For more information, see [SDK and CLI v2 expressions](concept-expressions.md).
197197

198198
For more information, see the [reference documentation](/python/api/azure-ai-ml/azure.ai.ml#azure-ai-ml-command).
199199

@@ -212,7 +212,7 @@ The `az ml job create` command used in this example requires a YAML job definiti
212212
In the above, you configured:
213213
- `code` - path where the code to run the command is located
214214
- `command` - command that needs to be run
215-
- `inputs` - dictionary of inputs using name value pairs to the command. The key is a name for the input within the context of the job and the value is the input value. Inputs are referenced in the `command` using the `${{inputs.<input_name>}}` expression.
215+
- `inputs` - dictionary of inputs using name value pairs to the command. The key is a name for the input within the context of the job and the value is the input value. Inputs are referenced in the `command` using the `${{inputs.<input_name>}}` expression. For more information, see [SDK and CLI v2 expressions](concept-expressions.md).
216216
- `environment` - the environment needed to run the training script. In this example, we use a curated or ready-made environment provided by Azure Machine Learning called `AzureML-sklearn-0.24-ubuntu18.04-py37-cpu`. We use the latest version of this environment by using the `@latest` directive. You can also use custom environments by specifying a base docker image and specifying a conda yaml on top of it.
217217
To submit the job, use the following command. The run ID (name) of the training job is stored in the `$run_id` variable:
218218

articles/machine-learning/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@
154154
# end v1
155155
- name: Azure Machine Learning CLI and Python SDK
156156
href: concept-v2.md
157+
- name: CLI and Python SDK v2 expressions
158+
href: concept-expressions.md
157159
- name: Manage environments with SDK and CLI (v2)
158160
displayName: environment
159161
href: how-to-manage-environments-v2.md

articles/machine-learning/tutorial-pipeline-python-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ if __name__ == "__main__":
350350

351351
Now that you have a script that can perform the desired task, create an Azure Machine Learning Component from it.
352352

353-
Use the general purpose `CommandComponent` that can run command line actions. This command line action can directly call system commands or run a script. The inputs/outputs are specified on the command line via the `${{ ... }}` notation.
353+
Use the general purpose `CommandComponent` that can run command line actions. This command line action can directly call system commands or run a script. The inputs/outputs are specified on the command line via the `${{ ... }}` (expression) notation. For more information, see [SDK and CLI v2 expressions](concept-expressions.md).
354354

355355

356356

0 commit comments

Comments
 (0)