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

Build a House Price Predictor with SAP AI Core using VS Code Toolkit

Build portable AI code with Vs code Toolkit and use it with SAP AI Core.

Overview

🎓 beginner 45 min. SAP Ai CoreBeginnerArtificial IntelligenceMachine LearningSAP Business Technology PlatformSAP Ai Launchpad

You will learn

  • Setup Vs code Toolkit
  • Train a Model on SAP AI core using Vs Code Toolkit
  • Deploy a model on SAP AI core Exentention
Dhrubajyoti Paul D Dhrubajyoti Paul August 13, 2024
Created by July 5, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

By the end of the tutorial you will have your AI code in form of a Docker image, connected to your AI workflow. You will also know how to use Docker images together with AI core and how to debug your code if the Execution goes to an unexpected state. This tutorial is a precursor to the set up of data pipelines and model generation.

You may still complete this tutorial if you are not familiar with the Python programming language.


Step 1 Create a Docker account and generate a Docker access token

You need a Docker repository to store your AI code on the cloud in the form of Docker images. SAP AI core will fetch your code from this Docker repository. The image ensures that your code is bundled along with all of the dependencies, directory structure and drivers that are required when using GPU.

INFORMATION You may use your organization’s own Docker registry/repository. But please ensure that the repository is internet facing, not protected by a firewall.

Sign Up for a Docker account.

Click on the profile button (your profile name) and then select Account Settings.

image

Select Security from the navigation bar and click New Access Token.

image

Follow the guided steps, and then store the token that you receive in your local system.

SECURITY TIP: This access token means that SAP AI Core can access the specified Docker repository without you sharing you Docker credentials. It also means that you can revoke access by deleting the token, rather than having to change your credentials.

Step 2 Install Docker Desktop
+
Step 3 Write AI code for house price prediction
+
Step 4 Transform your AI code into a Docker image
+
Step 5 Connect your local system to a Docker account
+
Step 6 Upload a Docker image to the cloud
+
Step 7 Adding GitHub
+
Step 8 Creating an application
+
Step 9 Setting up docker secret
+
Step 10 Connecting docker secrets to AI core
+
Step 11 Uploading the dataset to S3
+
Step 12 Creating object store credentials
+
Step 13 Creating an Artifact
+
Step 14 Creating a Configuration
+
Step 15 Running Training
+
Step 16 Deployment
+
Step 17 Troubleshooting ERRORS
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 17
1. Create a Docker account and generate a Docker access token 2. Install Docker Desktop 3. Write AI code for house price prediction 4. Transform your AI code into a Docker image 5. Connect your local system to a Docker account 6. Upload a Docker image to the cloud 7. Adding GitHub 8. Creating an application 9. Setting up docker secret 10. Connecting docker secrets to AI core 11. Uploading the dataset to S3 12. Creating object store credentials 13. Creating an Artifact 14. Creating a Configuration 15. Running Training 16. Deployment 17. Troubleshooting ERRORS

Learn more →