Hands-On Tutorial: Manage and Run Machine Learning Models in R through Docker and in SAP BTP, Kyma 2.0 Runtime
This Github repository provides the material used in a HandsOn blog, which covers the following main steps:
- Create an API endpoint to be able to communicate with the application and create predictions with a machine learning model
- Containerize R script in Docker image with all the requirements and dependencies
- Deploy Machine Learning Model in R with Kyma 2.0 on SAP Business Technology Plattform
There are some sample-specific requirements that you can find in detail in the Hands-On blog. In summary the following software/editors are required:
- R Editor like RStudio
- Docker for Windows
- Docker Hub Account
- Command Line Tool like PowerShell
To run the sample in the SAP BTP Trial, Kyma runtime an active SAP BTP Trial account is required with an enabled Kyma environment.
The sample files can be downloaded and used within the respective user / developer environment, e.g. R files may be opened and used within a R Editor. The sample files don't require an installation step for themselves, they are simply downloaded and then opened in the respective editor. Through the Dockerfile and the R script the following R libraries will be installed:
- mlr
- beakr
- randomForest
Further, some by the library 'mlr' required ubuntu libraries will be installed.
Currently, there are no known issues for the sample project.
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.
Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.