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/tutorial-convert-ml-experiment-to-production.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In this tutorial, you learn how to:
25
25
26
26
- Generate the [MLOpsPython template](https://github.com/microsoft/MLOpsPython/generate)
27
27
and use the `experimentation/Diabetes Ridge Regression Training.ipynb` and `experimentation/Diabetes Ridge Regression Scoring.ipynb` notebooks. These notebooks are used as an example of converting from experimentation to production. You can find these notebooks at [https://github.com/microsoft/MLOpsPython/tree/master/experimentation](https://github.com/microsoft/MLOpsPython/tree/master/experimentation).
28
-
- Install nbconvert. Follow only the installation instructions under section __Installing nbconvert__ on the [Installation](https://nbconvert.readthedocs.io/en/latest/install.html) page.
28
+
- Install `nbconvert`. Follow only the installation instructions under section __Installing nbconvert__ on the [Installation](https://nbconvert.readthedocs.io/en/latest/install.html) page.
29
29
30
30
## Remove all nonessential code
31
31
@@ -342,13 +342,13 @@ Third, related functions need to be merged into Python files to better help code
342
342
343
343
### Create Python file for the Diabetes Ridge Regression Training notebook
344
344
345
-
Convert your notebook to an executable script by running the following statement in a command prompt, which uses the nbconvert package and the path of `experimentation/Diabetes Ridge Regression Training.ipynb`:
345
+
Convert your notebook to an executable script by running the following statement in a command prompt, which uses the `nbconvert` package and the path of `experimentation/Diabetes Ridge Regression Training.ipynb`:
Once the notebook has been converted to `train.py`, remove any unwanted the comments. Replace the call to `main()` at the end of the file with a conditional invocation
351
+
Once the notebook has been converted to `train.py`, remove any unwanted comments. Replace the call to `main()` at the end of the file with a conditional invocation like the following code:
352
352
353
353
```python
354
354
if__name__=='__main__':
@@ -430,13 +430,13 @@ The `train_aml.py` file found in the `diabetes_regression/training` directory in
430
430
431
431
### Create Python file for the Diabetes Ridge Regression Scoring notebook
432
432
433
-
Covert your notebook to an executable script by running the following statement in a command prompt that which uses the nbconvert package and the path of `experimentation/Diabetes Ridge Regression Scoring.ipynb`:
433
+
Covert your notebook to an executable script by running the following statement in a command prompt that which uses the `nbconvert` package and the path of `experimentation/Diabetes Ridge Regression Scoring.ipynb`:
The `train_model` function needs modification to instantiate a global variable model so that it's visible throughout the script. Add the following statement at the beginning of the `init` function:
466
+
The `model` variable needs to be global so that it's visible throughout the script. Add the following statement at the beginning of the `init` function:
0 commit comments