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
-`run_invocation_timeout`: The `run()` method invocation timeout in seconds. (optional; default value is `60`)
129
129
-`run_max_try`: Maximum try count of `run()` for a mini-batch. A `run()` is failed if an exception is thrown, or nothing is returned when `run_invocation_timeout` is reached (optional; default value is `3`).
130
130
131
-
You can specify `mini_batch_size`, `node_count`, `process_count_per_node`, `logging_level`, `run_invocation_timeout`, and `run_max_try` as `PipelineParameter`, so that when you resubmit a pipeline run, you can fine-tune the parameter values. In this example, you use `PipelineParameter` for `mini_batch_size` and `Process_count_per_node` and you will change these values when resubmit a run later.
131
+
You can specify `mini_batch_size`, `node_count`, `process_count_per_node`, `logging_level`, `run_invocation_timeout`, and `run_max_try` as `PipelineParameter`, so that when you resubmit a pipeline run, you can fine-tune the parameter values. In this example, you use `PipelineParameter` for `mini_batch_size` and `Process_count_per_node` and you will change these values when you resubmit a run later.
132
132
133
133
### Parameters for creating the ParallelRunStep
134
134
@@ -267,6 +267,86 @@ For more information on using the OpenCensus Python library in this manner, see
267
267
268
268
In some cases, you may need to interactively debug the Python code used in your ML pipeline. By using Visual Studio Code (VS Code) and debugpy, you can attach to the code as it runs in the training environment. For more information, visit the [interactive debugging in VS Code guide](../how-to-debug-visual-studio-code.md#debug-and-troubleshoot-machine-learning-pipelines).
269
269
270
+
## HyperdriveStep and AutoMLStep fail with network isolation
271
+
272
+
After using HyperdriveStep and AutoMLStep, when you attempt to register the model you may receive an error.
273
+
274
+
* You are using Azure Machine Learning SDK v1.
275
+
* Your Azure Machine Learning workspace is configured for network isolation (VNet).
276
+
* Your pipeline attempts to register the model generated by the previous step. For example, in the following code the `inputs` parameter is the saved_model from a HyperdriveStep:
> This behavior does not occur when using Azure Machine Learning SDK v2.
292
+
293
+
To work around this error, use the [Run](/python/api/azureml-core/azureml.core.run.run) class to get the model created from the HyperdriveStep or AutoMLStep. The following is an example script that gets the output model from a HyperdriveStep:
294
+
295
+
```python
296
+
%%writefile $script_folder/model_download9.py
297
+
import argparse
298
+
from azureml.core import Run
299
+
from azureml.pipeline.core import PipelineRun
300
+
from azureml.core.experiment import Experiment
301
+
from azureml.train.hyperdrive import HyperDriveRun
302
+
from azureml.pipeline.steps import HyperDriveStepRun
303
+
304
+
if__name__=="__main__":
305
+
parser = argparse.ArgumentParser()
306
+
parser.add_argument(
307
+
'--hd_step_name',
308
+
type=str, dest='hd_step_name',
309
+
help='The name of the step that runs AutoML training within this pipeline')
* For a complete tutorial using `ParallelRunStep`, see [Tutorial: Build an Azure Machine Learning pipeline for batch scoring](../tutorial-pipeline-batch-scoring-classification.md).
@@ -275,4 +355,4 @@ In some cases, you may need to interactively debug the Python code used in your
275
355
276
356
* See the SDK reference for help with the [azureml-pipelines-core](/python/api/azureml-pipeline-core/) package and the [azureml-pipelines-steps](/python/api/azureml-pipeline-steps/) package.
277
357
278
-
* See the list of [designer exceptions and error codes](../algorithm-module-reference/designer-error-codes.md).
358
+
* See the list of [designer exceptions and error codes](../algorithm-module-reference/designer-error-codes.md).
Copy file name to clipboardExpand all lines: articles/machine-learning/v1/how-to-use-automlstep-in-pipelines.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -366,6 +366,10 @@ print("Registered version {0} of model {1}".format(model.version, model.name))
366
366
367
367
### Write the PythonScriptStep code
368
368
369
+
370
+
> [!WARNING]
371
+
> If you are using the Azure Machine Learning SDK v1, and your workspace is configured for network isolation (VNet), you may receive an error when running this step. For more information, see [HyperdriveStep and AutoMLStep fail with network isolation](how-to-debug-pipelines.md#hyperdrivestep-and-automlstep-fail-with-network-isolation).
372
+
369
373
The model-registering `PythonScriptStep` uses a `PipelineParameter` for one of its arguments. Pipeline parameters are arguments to pipelines that can be easily set at run-submission time. Once declared, they're passed as normal arguments.
0 commit comments