This project provides code examples for the SAP HANA Automated Predictive Library (APL). It provides simple APL SQL examples covering all APL APIs, as well as reference implementations of the runtimes needed when predictive models are exported in C++, Java, or JavaScript for real-time scoring.
This repository contains the following:
- SQL sample code of APL APIs.
- Sample data for the sample codes.
- For HANA On Premise, the standard HANA import statement or the HANA studio import feature must be used to import the folder dataForHANAOnPremise.
- For HANA Cloud, the SAP HANA database explorer import Catalog objects feature must be used to import the archive dataForHANACloud.tar.gz.
- Reference implementations of the runtime code needed when exporting a model built by APL. Runtime code is provided for the following languages:
To use the content, you need access to SAP HANA Automated Predictive Library installed on an SAP HANA server. Details can be found on our installation guide.
The sample and runtime files can be downloaded and used within the respective user/developer environment, for example, SQL files may be opened and used within the SQL console of SAP HANA studio or SAP HANA database explorer. The sample files don't require an install step for themselves; they can simply be downloaded and then opened in the respective editor.
If you have ve Git installed, clone this repo as shown below, otherwise download the samples as a ZIP file.
git clone https://github.com/SAP-samples/hana-apl-apis-runtimes apl_samples
cd apl_samples
None
A set of resources about the usage of APL is available in SAP Community.
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in the community.
Read the Covenant Code of Conduct
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.