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

Build portable AI code with Docker and use it with SAP AI Core.

Overview

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

You will learn

  • βœ”How to build Docker images from code.
  • βœ”How to use Docker images with SAP AI Core
  • βœ”How to check and debug execution logs for errors.

Prerequisites

Prerequisites

  • A BTP global account If you are an SAP Developer or SAP employee, please refer to the following links ( for internal SAP stakeholders only ) - How to create a BTP Account (internal) SAP AI Core If you are an external developer or a customer or a partner kindly refer to this tutorial
  • You have created your first workflow with SAP AI Core, using this tutorial

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.

Please find downloadable sample notebooks for the tutorials : . Note that these tutorials are for demonstration purposes only and should not be used in production environments. To execute them properly, you’ll need to set up your own S3 bucket or provision services from BTP, including an AI Core with a standard plan for narrow AI and an extended plan for GenAI HUB. Ensure you input the service keys of these services into the relevant cells of the notebook. Link to notebook


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 Store your Docker credentials in SAP AI Core as a Docker registry secret
+
Step 8 Reference a Docker image in your AI workflow
+
Step 9 Description of edits in your workflow.
+
Step 10 Check the sync status of your workflow
+
Step 11 Run your AI workflow
+
Step 12 Look for error logs in execution
+
Step 13 Fix and update code
+
Step 14 Update your AI workflow
+
Step 15 Create execution
+
Step 16 Scheduling Execution (optional)
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 16
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. Store your Docker credentials in SAP AI Core as a Docker registry secret 8. Reference a Docker image in your AI workflow 9. Description of edits in your workflow. 10. Check the sync status of your workflow 11. Run your AI workflow 12. Look for error logs in execution 13. Fix and update code 14. Update your AI workflow 15. Create execution 16. Scheduling Execution (optional)

Learn more →