Skip to content

Commit 547103f

Browse files
Automatic commit: Move 'cp-aibus-dar-sdk-usage', 'cp-aibus-dar-swagger-automl-model', 'cp-aibus-dar-swagger-automl-predict', 'cp-aibus-dar-swagger-automl-upload', 'cp-aibus-dar-swagger-ior-model', 'cp-aibus-dar-swagger-regression-model', 'cp-aibus-dar-swagger-regression-predict' from QA to Production
1 parent 9239f1b commit 547103f

Some content is hidden

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

45 files changed

+45413
-48892
lines changed

tutorials/cp-aibus-dar-sdk-usage/cp-aibus-dar-sdk-usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ auto_validation: true
55
time: 30
66
tags: [ tutorial>intermediate, topic>machine-learning, topic>artificial-intelligence, topic>cloud, software-product>sap-business-technology-platform, software-product>sap-ai-business-services, software-product>data-attribute-recommendation]
77
primary_tag: topic>machine-learning
8+
author_name: Juliana Morais
9+
author_profile: https://github.com/Juliana-Morais
810
---
911

1012
## Details

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For this tutorial, copy the URL of the Swagger UI for `mm` and open it in a brow
4646
4747
[ACCORDION-BEGIN [Step 2: ](Create a training job)]
4848
49-
To train a machine learning model using the data that you uploaded in [Use the AutoML Model Template to Upload Data to Data Attribute Recommendation with Swagger UI](cp-aibus-dar-swagger-automl-upload), you create a training job. With each training job you provide a model template which combines data processing rules and machine learning model architecture. You can find the list of available model templates [here](https://help.sap.com/viewer/105bcfd88921418e8c29b24a7a402ec3/SHIP/en-US/1e76e8c636974a06967552c05d40e066.html).
49+
To train a machine learning model using the data that you uploaded in [Use an AutoML Dataset Schema to Upload Training Data to Data Attribute Recommendation](cp-aibus-dar-swagger-automl-upload), you create a training job. With each training job you provide a model template 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).
5050
5151
The AutoML model template that you use in this tutorial is suited for datasets with single labels, meaning that the machine learning model only predicts a single field.
5252
@@ -56,7 +56,7 @@ To create the training job, proceed as follows:
5656
5757
!![Training Job Endpoint](png-files/job-endpoint.png)
5858
59-
2. In the text area, replace the parameter value for `datasetId` with the ID of your dataset that you have created in [Use the AutoML Model Template to Upload Data to Data Attribute Recommendation with Swagger UI](cp-aibus-dar-swagger-automl-upload). Replace the parameter value for `modelTemplateId` with `188df8b2-795a-48c1-8297-37f37b25ea00`. Finally, replace the parameter value `modelName` with your model name, `automl_tutorial_model`, for example. Leave the parameter value for `businessBlueprintId` empty. Click **Execute** to create the training job.
59+
2. In the text area, replace the parameter value for `datasetId` with the ID of your dataset that you have created in [Use an AutoML Dataset Schema to Upload Training Data to Data Attribute Recommendation](cp-aibus-dar-swagger-automl-upload). Replace the parameter value for `modelTemplateId` with `188df8b2-795a-48c1-8297-37f37b25ea00`. Finally, replace the parameter value `modelName` with your model name, `automl_tutorial_model`, for example. Delete the `businessBlueprintId` line from the **Request body**. Click **Execute** to create the training job.
6060
6161
!![Training Job Execute](png-files/job-execute.png)
6262
@@ -82,7 +82,7 @@ To know when your training job has ended, you have to frequently check its statu
8282
8383
!![Training Job Status Execute](png-files/job-status-execute.png)
8484
85-
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 production 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.
85+
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 production or trial environments. 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.
8686
8787
!![Training Job Status Response](png-files/job-status-response.png)
8888
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

tutorials/cp-aibus-dar-swagger-automl-predict/cp-aibus-dar-swagger-automl-predict.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,47 @@ To classify records, proceed as follows:
8585
8686
!![Inference Execute](png-files/inference-execute.png)
8787
88-
5. In the response of the service, you find ..
88+
In the response of the service, you find the values that the model predicted. The probability represents how certain the model is about its prediction. The higher the probability the more confident the model is that the prediction is actually correct. If the probability is close to 1, the model is very certain.
89+
90+
!![Inference Execute](png-files/inference-response.png)
91+
92+
```JSON
93+
{
94+
"id": "8caba3f2-f2af-4bb6-7f4c-079b9f87caee",
95+
"predictions": [
96+
{
97+
"labels": [
98+
{
99+
"name": "F3_readable",
100+
"results": [
101+
{
102+
"probability": 1,
103+
"value": "Household Batteries"
104+
}
105+
]
106+
}
107+
],
108+
"objectId": "optional-identifier-1"
109+
},
110+
{
111+
"labels": [
112+
{
113+
"name": "F3_readable",
114+
"results": [
115+
{
116+
"probability": 1,
117+
"value": "Sheet Music"
118+
}
119+
]
120+
}
121+
],
122+
"objectId": "optional-identifier-2"
123+
}
124+
],
125+
"processedTime": "2022-05-16T09:51:36.321470",
126+
"status": "DONE"
127+
}
128+
```
89129

90130
You have successfully classified products into product categories. Feel free to adapt the examples above and retry the classification.
91131

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

tutorials/cp-aibus-dar-swagger-automl-upload/cp-aibus-dar-swagger-automl-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Use the following dataset schema:
8282
],
8383
"labels": [
8484
{
85-
"label": "level1_category",
85+
"label": "F3_readable",
8686
"type": "CATEGORY"
8787
}
8888
],

0 commit comments

Comments
 (0)