Skip to content

Commit de456b5

Browse files
authored
Merge pull request #23033 from Juliana-Morais/master
removed images from folder
2 parents 08016c4 + 79221a7 commit de456b5

File tree

95 files changed

+744
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+744
-62
lines changed

tutorials/cp-aibus-dar-swagger-ior-model/cp-aibus-dar-swagger-ior-model.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ author_name: Juliana Morais
88
author_profile: https://github.com/Juliana-Morais
99
---
1010

11-
# Use the Invoice Object Recommendation Business Blueprint to Train a Machine Learning Model
12-
<!-- description --> Train a machine learning model for the Data Attribute Recommendation service, using the Invoice Object Recommendation business blueprint.
11+
# Use the Invoice Object Recommendation (IOR) Business Blueprint to Train a Machine Learning Model
12+
<!-- description --> Train a machine learning model for the Data Attribute Recommendation service, using the Invoice Object Recommendation (IOR) business blueprint.
1313

1414
## You will learn
15-
- How to train a machine learning model using the Invoice Object Recommendation business blueprint
15+
- How to train a machine learning model using the Invoice Object Recommendation (IOR) business blueprint
1616
- How to deploy a machine learning model to get financial object predictions
1717

1818
---
@@ -22,15 +22,15 @@ author_profile: https://github.com/Juliana-Morais
2222

2323
In the service key you created for Data Attribute Recommendation in the previous tutorial: [Use Free Tier to Set Up Account for Data Attribute Recommendation and Get Service Key](cp-aibus-dar-booster-free-key) or [Use Trial to Set Up Account for Data Attribute Recommendation and Get Service Key](cp-aibus-dar-booster-key), you find a section called `swagger` (as highlighted in the image below) with three entries, called `dm` (data manager), `mm` (model manager) and `inference`.
2424

25-
<!-- border -->![Service Key](png-files/service-key-details.png)
25+
<!-- border -->![Service Key](service-key-details.png)
2626

2727
For this tutorial, copy the URL of the Swagger UI for `mm` and open it in a browser tab. The Swagger UI for the model manager allows you to train a machine learning model, to delete it, to deploy the model as well as to `undeploy` the model.
2828

29-
>After finishing this tutorial, keep the Swagger UI for `mm` open to perform the clean up tasks in [Use the Invoice Object Recommendation Business Blueprint to Predict Financial Objects](cp-aibus-dar-swagger-ior-predict).
29+
>After finishing this tutorial, keep the Swagger UI for `mm` open to perform the clean up tasks in [Use the Invoice Object Recommendation (IOR) Business Blueprint to Predict Financial Objects](cp-aibus-dar-swagger-ior-predict).
3030
3131
1. To be able to use the Swagger UI endpoints, you need to authorize yourself. In the top right corner, click **Authorize**.
3232

33-
<!-- border -->![Authorize](png-files/swagger-authorize.png)
33+
<!-- border -->![Authorize](swagger-authorize.png)
3434

3535
2. Get the `access_token` value created in the previous tutorial: [Get OAuth Access Token for Data Attribute Recommendation Using Any Web Browser](cp-aibus-dar-web-oauth-token), then add **Bearer** (with capitalized "B") in front of it, and enter in the **Value** field.
3636

@@ -40,32 +40,32 @@ For this tutorial, copy the URL of the Swagger UI for `mm` and open it in a brow
4040
4141
3. Click **Authorize** and then click **Close**.
4242
43-
<!-- border -->![Authorize](png-files/swagger-token.png)
43+
<!-- border -->![Authorize](swagger-token.png)
4444
4545
4646
4747
### Create a training job
4848
4949
50-
To train a machine learning model using the data that you uploaded in [Use an Invoice Object Recommendation Dataset Schema to Upload Training Data to Data Attribute Recommendation](cp-aibus-dar-swagger-ior-upload), you create a training job.
50+
To train a machine learning model using the data that you uploaded in [Use an Invoice Object Recommendation (IOR) Dataset Schema to Upload Training Data to Data Attribute Recommendation](cp-aibus-dar-swagger-ior-upload), you create a training job.
5151
52-
With each training job you provide a model template or a business blueprint which combines data processing rules and machine learning model architecture. You can find the list of available model templates [here](https://help.sap.com/docs/Data_Attribute_Recommendation/105bcfd88921418e8c29b24a7a402ec3/1e76e8c636974a06967552c05d40e066.html). The only business blueprint currently available is Invoice Object Recommendation, as you can see [here](https://help.sap.com/docs/Data_Attribute_Recommendation/105bcfd88921418e8c29b24a7a402ec3/091eace025e14793be0e83ef2109b349.html).
52+
With each training job you provide a model template or a business blueprint which combines data processing rules and machine learning model architecture. You can find the list of available model templates [here](https://help.sap.com/docs/Data_Attribute_Recommendation/105bcfd88921418e8c29b24a7a402ec3/1e76e8c636974a06967552c05d40e066.html), and the list of available business blueprints [here](https://help.sap.com/docs/Data_Attribute_Recommendation/105bcfd88921418e8c29b24a7a402ec3/091eace025e14793be0e83ef2109b349.html).
5353
54-
The Invoice Object Recommendation business blueprint that you use in this tutorial is suited to assign G/L (general ledger) accounts and other financial objects to incoming invoices without a purchase order reference.
54+
The Invoice Object Recommendation (IOR) business blueprint that you use in this tutorial is suited to assign G/L (general ledger) accounts and other financial objects to incoming invoices without a purchase order reference.
5555
5656
To create the training job, proceed as follows:
5757
5858
1. Expand the endpoint **POST /jobs** by clicking on it. Then click **Try it out**.
5959
60-
<!-- border -->![Training Job Endpoint](png-files/job-endpoint.png)
60+
<!-- border -->![Training Job Endpoint](job-endpoint.png)
6161
62-
2. In the text area, replace the parameter value for `datasetId` with the `id` of your dataset that you have created in [Use an Invoice Object Recommendation Dataset Schema to Upload Training Data to Data Attribute Recommendation](cp-aibus-dar-swagger-ior-upload). Delete the `modelTemplateId` line from the **Request body**. Replace the parameter value `modelName` with your model name, `ior_tutorial_model`, for example. Make sure the parameter value for `businessBlueprintId` is `4788254b-0bad-4757-a67f-92d5b55f322d`. Click **Execute** to create the training job.
62+
2. In the text area, replace the parameter value for `datasetId` with the `id` of your dataset that you have created in [Use an Invoice Object Recommendation (IOR) Dataset Schema to Upload Training Data to Data Attribute Recommendation](cp-aibus-dar-swagger-ior-upload). Delete the `modelTemplateId` line from the **Request body**. Replace the parameter value `modelName` with your model name, `ior_tutorial_model`, for example. Make sure the parameter value for `businessBlueprintId` is `4788254b-0bad-4757-a67f-92d5b55f322d`. Click **Execute** to create the training job.
6363
64-
<!-- border -->![Training Job Execute](png-files/job-execute.png)
64+
<!-- border -->![Training Job Execute](job-execute.png)
6565
6666
3. In the response of the service, you find the `id` of your training job. Copy the `id` as you'll need it in the next step. Along side the `id`, you find the training job's current status. Initially, the status is `PENDING` which says that the training job is in queue but has not started yet.
6767
68-
<!-- border -->![Training Job Response](png-files/job-response.png)
68+
<!-- border -->![Training Job Response](job-response.png)
6969
7070
You have successfully created a training job.
7171
@@ -78,15 +78,15 @@ To know when your training job has ended, you have to frequently check its statu
7878
7979
1. Expand the endpoint `GET /jobs/{jobId}` by clicking on it. Then click **Try it out**.
8080
81-
<!-- border -->![Training Job Status Endpoint](png-files/job-status-endpoint.png)
81+
<!-- border -->![Training Job Status Endpoint](job-status-endpoint.png)
8282
8383
2. Fill the parameter `jobId` with `id` of your training job that you copied in the previous step. Click **Execute**.
8484
85-
<!-- border -->![Training Job Status Execute](png-files/job-status-execute.png)
85+
<!-- border -->![Training Job Status Execute](job-status-execute.png)
8686
8787
3. In the response, you find again the current status of your training job along with other details. Immediately after creation of the training job, the status is `PENDING`. Shortly after, it changes to `RUNNING` which means that the model is being trained. The training of the sample data usually takes about 5 minutes to complete but may run longer, up to a few hours due to limited availability of resources in the free tier environment. You can check the status every now and then. Once training is finished, the status changes to `SUCCEEDED` which means the service has created a machine learning model and you can proceed.
8888
89-
<!-- border -->![Training Job Status Response](png-files/job-status-response.png)
89+
<!-- border -->![Training Job Status Response](job-status-response.png)
9090
9191
You have successfully trained a machine learning model.
9292
@@ -99,15 +99,15 @@ To use the trained model, you need to deploy it. Once deployed, the model is rea
9999
100100
1. Expand the endpoint `POST /deployments` by clicking on it. Then click **Try it out**.
101101
102-
<!-- border -->![Deployment Endpoint](png-files/deploy-endpoint.png)
102+
<!-- border -->![Deployment Endpoint](deploy-endpoint.png)
103103
104104
2. In the text area, replace the parameter `modelName` with the name of your model (`ior_tutorial_model`). Click **Execute** to deploy the model.
105105
106-
<!-- border -->![Deployment Execute](png-files/deploy-execute.png)
106+
<!-- border -->![Deployment Execute](deploy-execute.png)
107107
108108
3. In the response of the service, you find the `id` of the deployment and its status. Initially, the status is `PENDING`, indicating the deployment is in progress. Make sure to copy the `id` as you need it in the next step.
109109
110-
<!-- border -->![Deployment Response](png-files/deploy-response.png)
110+
<!-- border -->![Deployment Response](deploy-response.png)
111111
112112
113113
@@ -118,16 +118,14 @@ Finally, you have to ensure that your model is deployed successfully in order to
118118
119119
1. Expand the endpoint `GET /deployments/{id}` by clicking on it. Then click **Try it out**.
120120
121-
<!-- border -->![Deployment Status Endpoint](png-files/deploy-status-endpoint.png)
121+
<!-- border -->![Deployment Status Endpoint](deploy-status-endpoint.png)
122122
123123
2. Fill the parameter `deploymentId` with the `id` of your deployment that you copied in the previous step. Click **Execute**.
124124
125-
<!-- border -->![Deployment Status Execute](png-files/deploy-status-execute.png)
125+
<!-- border -->![Deployment Status Execute](deploy-status-execute.png)
126126
127127
3. In the response of the service, you find the current status of the deployment. If the status is `SUCCEEDED`, your deployment is done. If the status is still `PENDING`, check back in a few minutes.
128128
129-
<!-- border -->![Deployment Status Execute](png-files/deploy-status-response.png)
130-
131-
You have successfully trained a machine learning model and deployed it. Next, you'll use your model to make predictions.
132-
129+
<!-- border -->![Deployment Status Execute](deploy-status-response.png)
133130
131+
You have successfully trained a machine learning model and deployed it. Next, you'll use your model to make predictions.

0 commit comments

Comments
 (0)