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
To use this existing project structure and scripts for your new ML project, you can quickly get started from the existing repository, bootstrap and create a template that works for your ML project.
4
-
5
-
Bootstrapping will prepare a directory structure for your project which includes:
6
-
7
-
* renaming files and folders from the base project name `diabetes_regression` to your project name
8
-
* fixing imports and absolute path based on your project name
9
-
* deleting and cleaning up some directories
10
-
11
-
To bootstrap from the existing MLOpsPython repository:
* `[dirpath]` is the absolute path to the root of the directory where MLOpsPython is cloned
18
-
* `[projectname]` is the name of your ML project
3
+
For steps on how to use the bootstrap script, please see the "Bootstrap the project" section of the [custom model guide](../docs/custom_model.md#bootstrap-the-project).
Copy file name to clipboardExpand all lines: docs/custom_model.md
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
This document provides steps to follow when using this repository as a template to train models and deploy the models with real-time inference in Azure ML with your own scripts and data.
4
4
5
5
1. Follow the MLOpsPython [Getting Started](getting_started.md) guide
6
-
1.Follow the MLOpsPython [bootstrap instructions](../bootstrap/README.md) to create your project starting point
6
+
1.Bootstrap the project
7
7
1. Configure training data
8
8
1.[If necessary] Convert your ML experimental code into production ready code
9
9
1. Replace the training code
10
-
1. Update the evaluation code
10
+
1.[Optional]Update the evaluation code
11
11
1. Customize the build agent environment
12
12
1.[If appropriate] Replace the score code
13
13
@@ -17,24 +17,36 @@ Follow the [Getting Started](getting_started.md) guide to set up the infrastruct
17
17
18
18
Take a look at the [Repo Details](code_description.md) document for a description of the structure of this repository.
19
19
20
-
## Follow the Bootstrap instructions
20
+
## Bootstrap the project
21
21
22
-
The [Bootstrap from MLOpsPython repository](../bootstrap/README.md) guide will help you to quickly prepare the repository for your project.
22
+
Bootstrapping will prepare the directory structure to be used for your project name which includes:
23
+
24
+
* renaming files and folders from the base project name `diabetes_regression` to your project name
25
+
* fixing imports and absolute path based on your project name
26
+
* deleting and cleaning up some directories
23
27
24
28
**Note:** Since the bootstrap script will rename the `diabetes_regression` folder to the project name of your choice, we'll refer to your project as `[project name]` when paths are involved.
25
29
30
+
To bootstrap from the existing MLOpsPython repository:
31
+
32
+
1. Ensure Python 3 is installed locally
33
+
1. From a local copy of the code, run the `bootstrap.py` script in the `bootstrap` folder
* `[dirpath]` is the absolute path to the root of the directory where MLOpsPython is cloned
36
+
* `[projectname]` is the name of your ML project
37
+
26
38
## Configure training data
27
39
28
40
The training ML pipeline uses a [sample diabetes dataset](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_diabetes.html) as training data.
29
41
30
-
To use your own data:
42
+
**Important** Convert the template to use your own Azure ML Dataset for model training via these steps:
31
43
32
44
1.[Create a Dataset](https://docs.microsoft.com/azure/machine-learning/how-to-create-register-datasets) in your Azure ML workspace
33
45
1. Update the `DATASET_NAME` and `DATASTORE_NAME` variables in `.pipelines/[project name]-variables-template.yml`
34
46
35
47
## Convert your ML experimental code into production ready code
36
48
37
-
The MLOpsPython template creates an Azure Machine Learning (ML) pipeline that invokes a set of [Azure ML pipeline steps](https://docs.microsoft.com/python/api/azureml-pipeline-steps/azureml.pipeline.steps) (see `ml_service/pipelines/[project name]_build_train_pipeline.py`). If your experiment is currently in a Jupyter notebook, it will need to be refactored into scripts that can be run independantly and dropped into the template which the existing Azure ML pipeline steps utilize.
49
+
The MLOpsPython template creates an Azure Machine Learning (ML) pipeline that invokes a set of [Azure ML pipeline steps](https://docs.microsoft.com/python/api/azureml-pipeline-steps/azureml.pipeline.steps) (see `ml_service/pipelines/[project name]_build_train_pipeline.py`). If your experiment is currently in a Jupyter notebook, it will need to be refactored into scripts that can be run independently and dropped into the template which the existing Azure ML pipeline steps utilize.
Copy file name to clipboardExpand all lines: docs/getting_started.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
2
2
# Getting Started with MLOpsPython <!-- omit in toc -->
3
3
4
-
This guide shows how to get MLOpsPython working with a sample ML project ***diabetes_regression***. The project creates a linear regression model to predict diabetes. You can adapt this example to use with your own project.
4
+
This guide shows how to get MLOpsPython working with a sample ML project ***diabetes_regression***. The project creates a linear regression model to predict diabetes and has CI/CD DevOps practices enabled for model training and serving when these steps are completed in this getting started guide.
5
5
6
-
We recommend working through this guide completely to ensure everything is working in your environment. After the sample is working, follow the [bootstrap instructions](../bootstrap/README.md)to convert the ***diabetes_regression*** sample into a starting point for your project.
6
+
If you would like to bring your own model code to use this template structure, follow the [custom model](custom_model.md)guide. We recommend completing this getting started guide with the diabetes model through ACI deployment first to ensure everything is working in your environment before converting the template to use your own model code.
7
7
8
8
-[Setting up Azure DevOps](#setting-up-azure-devops)
9
9
-[Install the Azure Machine Learning extension](#install-the-azure-machine-learning-extension)
0 commit comments