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
Copy file name to clipboardExpand all lines: articles/machine-learning/v1/how-to-debug-pipelines.md
+80Lines changed: 80 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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).
0 commit comments