Skip to content

Commit 6bff28c

Browse files
committed
register section
1 parent e0ce6ce commit 6bff28c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/machine-learning/service/how-to-train-sklearn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ As the Run is executed, it goes through the following stages:
168168

169169
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).
170170

171-
The following code saves the model as part of the training script, train_iris.py.
171+
Add the following code to your training script, train_iris.py, to save the model.
172172

173173
``` Python
174174
import joblib
175175

176176
joblib.dump(svm_model_linear, 'model.joblib')
177177
```
178178

179-
Register the model with the following code.
179+
Register the model to your workspace with the following code.
180180

181181
```Python
182182
model = run.register_model(model_name='sklearn-iris', model_path='model.joblib')

0 commit comments

Comments
 (0)