Skip to content

Commit 14a4625

Browse files
committed
Removed load model code, replaced with link to doc.
1 parent 52320a9 commit 14a4625

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

articles/machine-learning/how-to-use-automlstep-in-pipelines.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -440,23 +440,7 @@ df = pd.DataFrame(deserialized_metrics_output)
440440

441441
The code snippet above shows the metrics file being loaded from it's location on the Azure datastore. You can also load it from the downloaded file, as shown in the comment. Once you've deserialized it and converted it to a Pandas DataFrame, you can see detailed metrics for each of the iterations of the automated ML step.
442442

443-
The model file can be deserialized into a `Model` object that you can use for inferencing, further metrics analysis, and so forth. To load a `Model` locally, you'll need to have installed the Azure ML SDK.
444-
445-
```azurepowershell
446-
pip install azureml-sdk[automl,explain]
447-
```
448-
449-
```python
450-
import pickle
451-
452-
model_filename = model_output._path_on_datastore
453-
# model_filename = path to downloaded file
454-
455-
with open(model_filename, "rb" ) as f:
456-
best_model = pickle.load(f)
457-
458-
# ... inferencing code not shown ...
459-
```
443+
The model file can be deserialized into a `Model` object that you can use for inferencing, further metrics analysis, and so forth. To load a `Model` locally, you'll need to have installed the Azure ML SDK. For more information on loading and working with existing models, see [Use an existing model with Azure Machine Learning](how-to-deploy-existing-model.md).
460444

461445
### Download the results of an automated ML run
462446

0 commit comments

Comments
 (0)