Skip to content

Commit aa692e8

Browse files
authored
Merge pull request #98269 from trevorbye/master
adding register model details
2 parents ff10678 + 1b752d8 commit aa692e8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/machine-learning/service/how-to-train-ml-models.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@ run = experiment.submit(estimator)
122122
print(run.get_portal_url())
123123
```
124124

125+
## Registering a model
126+
127+
Once you've trained the model, you can save and register it to your workspace. Model registration lets you store and version your models in your workspace to simplify [model management and deployment](concept-model-management-and-deployment.md).
128+
129+
Running the following code will register the model to your workspace, and will make it available to reference by name in remote compute contexts or deployment scripts. See [`register_model`](https://docs.microsoft.com/python/api/azureml-core/azureml.core.run.run?view=azure-ml-py#register-model-model-name--model-path-none--tags-none--properties-none--model-framework-none--model-framework-version-none--description-none--datasets-none--sample-input-dataset-none--sample-output-dataset-none--resource-configuration-none----kwargs-) in the reference docs for more information and additional parameters.
130+
131+
```python
132+
model = run.register_model(model_name='sklearn-sample')
133+
```
134+
125135
## GitHub tracking and integration
126136

127137
When you start a training run where the source directory is a local Git repository, information about the repository is stored in the run history. For more information, see [Git integration for Azure Machine Learning](concept-train-model-git-integration.md).

0 commit comments

Comments
 (0)