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

Set Up the Metaflow Library for SAP AI Core

Explore different ways of logging metrics during training. Compare generated models.

Overview

🎓 beginner 20 min. SAP Ai CoreBeginnerArtificial IntelligenceMachine LearningSAP Ai Launchpad

You will learn

  • โœ”How to create a sandbox Python or Docker environment.
  • โœ”How to set up the Metaflow Python package for SAP AI Core
  • โœ”How to run a local test of your Metaflow pipeline.
Karim Mohraz K Karim Mohraz July 4, 2023
Created by August 29, 2022
Contributors

Prerequisites

Prerequisites

  • You have Docker Desktop installed.
  • You have created your first pipeline with SAP AI Core, using this tutorial.

Steps

Intro

Discover how Metaflow assists you, with diagrams and visualization from production to deployment. For more information, see the the Metaflow documentation.


Step 1 Set up your system, and Python
โ€”

CAUTION For Windows Users: Please use an alternate option tab to set up. Otherwise the Metaflow library could cause issues in installation.

Download and install Python 3.X from python.org.

Create and activate a virtual Python environment using the following snippet. Note, tutorial_metaflow is the name of your environment. The Python virtual environment helps you install Python packages inside a sandbox-like environment. You use the environment to maintain required versions of the packages for your project.

Shell
python -m venv tutorial_metaflow
source tutorial_metaflow/bin/activate

Check which Python is used by your virtual environment. You can see the path of the Python executable in your virtual environment.

Shell
which python
Step 2 Set environment variables
+
Step 3 Install Metaflow package
+
Step 4 Configure Metaflow
+
Step 5 Configure AWS
+
Step 6 Metaflow HelloWorld
+
Step 7 Run Metaflow pipeline locally
+
Step 8 Save set up environment
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Set up your system, and Python 2. Set environment variables 3. Install Metaflow package 4. Configure Metaflow 5. Configure AWS 6. Metaflow HelloWorld 7. Run Metaflow pipeline locally 8. Save set up environment

Learn more →