SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Upload Data to Data Attribute Recommendation

Upload a dataset to your Data Attribute Recommendation service instance to afterwards be able to train your machine learning model.

Overview

🎓 beginner 15 min. Machine LearningBeginnerArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesData Attribute Recommendation

You will learn

  • โœ”How to authorize your client to communicate with your Data Attribute Recommendation service instance
  • โœ”How to do upload data to your Data Attribute Recommendation service instance to train a machine learning model
Juliana Morais J Juliana Morais December 11, 2023
Created by December 12, 2019
Contributors

Prerequisites

Steps

Intro

To try out Data Attribute Recommendation, the first step is to upload data that will be used to train a machine learning model. For more information, see Data Attribute Recommendation help portal documentation. For further definition of specific terms, see Concepts.

Business Use Case: When creating the master data of a product, classifying the product into correct category and product hierarchy is a manual process that involves a product expert.

To help automate this manual process, Data Attribute Recommendation can learn from historical data of products and their hierarchies to automatically suggest the relevant categories with confidence level. This saves a lot of manual effort and helps automate the master data creation process. The same concept can be applied to transactional data like sales orders or any other orders with missing information.

The first steps to create this machine learning model that predicts categories and subcategories of a product is to prepare the dataset schema and upload to the service the training data. In this tutorial, you will focus on the model training data preparation, uploading and defining the dataset schema. For that, you will use a product dataset from Best Buy.


Step 1 Get an access token
โ€”

To communicate with your service instance, you need to retrieve an OAuth access token which will grant you access to the Data Attribute Recommendation APIs. This access token is added to all your service instance requests.

Open Postman and make sure that your Data Attribute Recommendation environment is selected. For detailed steps, see Set Up Postman Environment and Collection to call Data Attribute Recommendation APIs.

On the left, expand the Data Attribute Recommendation collection and open the subfolder Setup. In this folder, select the request, Get Authorization.

Click Send to send the request to your service instance.

Get Access Token
Get Access Token

The response includes your access_token plus its expiration time expires_in. If the token expires, you need to request a new one. There is no need to copy the access token as the collection automatically adds the token to all requests.

Receive Access Token
Receive Access Token

Step 2 Create dataset schema
+
Step 3 List all dataset schemas
+
Step 4 Create dataset
+
Step 5 Upload data
+
Step 6 See dataset status
+
Step 7 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Get an access token 2. Create dataset schema 3. List all dataset schemas 4. Create dataset 5. Upload data 6. See dataset status 7. Test yourself

Learn more →