sap-hana-ml
Skill1 starsChanged 4 months agoMITView on GitHub
SAP HANA Machine Learning — PAL (Predictive Analysis Library), APL (Automated Predictive Library), HANA ML Python client, built-in ML algorithms (regression, classification, clustering, time series), model training in HANA, model consumption from ABAP/CAP. Use when implementing HANA ML models, calling PAL/APL procedures, or integrating ML into ABAP applications.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- yan252/trae-sap-skillstheir own version, first seen Feb 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- yan252/trae-sap-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository413 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .cursor/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sap-router-skillCopilot instructions
- .cursor/rules/sap-router.mdcCursor rule
- abap-cloud-migrationSkill
- abap-cloudSkill
- abap-code-patternsSkill
- abap-code-reviewSkill
- abap-docs-referenceSkill
- abapgitSkill
- abapSkill
- abap-snippetSkill
- abap-sql-amdpSkill
- abap-system-infoSkill
- abap-unit-testingSkill
- arc-1-skillsSkill
- atc-cloudificationSkill
- authorization-iamSkill
- automation-pilot-catalog-explorerSkill
- automation-pilot-command-generationSkill
- automation-pilot-command-reviewSkill
- automation-pilot-content-management-via-apiSkill
- automation-pilot-debuggerSkill
- automation-pilot-executions-apiSkill
- automation-pilot-executor-executescriptSkill
- automation-pilot-executor-httprequestSkill
- automation-pilot-mcp-server-generationSkill
- automation-pilot-scheduled-executions-apiSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-best-practicesSkill
- btp-build-work-zoneSkill
- btp-business-application-studioSkill
- btp-ciasSkill
- btp-cloud-foundrySkill
- btp-cloud-identitySkill
- btp-cloud-loggingSkill
- btp-cloud-platformSkill
- btp-cloud-transport-managementSkill
- btp-connectivitySkill
- btp-developer-guideSkill
- btp-diagram-generatorSkill
- btp-integration-suiteSkill
- btp-job-schedulingSkill
- btp-master-data-integrationSkill
- btp-service-managerSkill
- cap-add-remote-serviceSkill
- cap-developerSkill
- cap-triviaSkill
- capture-answerSkill
- cap-upgradeSkill
- cds-view-entitiesSkill
- claude-abap-skillsSkill
- claude-memSkill
- clean-abapSkill
- context-modeSkill
- cpi-iflow-developmentSkill
- The first 60 shown.
The file
Files
SAP HANA Machine Learning
In-database machine learning with PAL and APL libraries.
PAL (Predictive Analysis Library)
-- Train a linear regression model
CREATE PROCEDURE TRAIN_REGRESSION()
LANGUAGE SQLSCRIPT AS
BEGIN
CALL _SYS_AFL.PAL_LINEAR_REGRESSION(
TRAIN_DATA => (SELECT * FROM TRAINING_DATA),
PARAMETERS => '{"THREAD_NUMBER":4}',
MODEL => RESULT_MODEL,
STATISTICS => RESULT_STATS
);
INSERT INTO MODEL_TABLE SELECT * FROM :RESULT_MODEL;
END;APL (Automated Predictive Library)
-- Automated model selection
CALL _SYS_AFL.APL_FORECAST(
INPUT => (SELECT * FROM SALES_DATA),
PARAMETERS => '{
"HORIZON": 12,
"TARGET": "sales_amount",
"DATE_COLUMN": "posting_date",
"GRANULARITY": "MONTH",
"LAST_TRAINING_DATE": "2026-01-01"
}',
RESULT => FORECAST_RESULT
);
SELECT * FROM :FORECAST_RESULT;HANA ML Python Client
from hana_ml import dataframe
from hana_ml.algorithms.pal import linear_regression
# Connect
conn = dataframe.ConnectionContext(
address='my-hana.cfapps.us10.hana.ondemand.com',
port=443, user='SYSTEM', password='...', encrypt=True
)
# Load data
df = conn.table('TRAINING_DATA', schema='ZSALES').select(['X1','X2','Y']).collect()
# Train model
lr = linear_regression.LinearRegression()
lr.fit(data=df, key='ID', features=['X1','X2'], label='Y')
# Predict
predictions = lr.predict(data=conn.table('PRODUCTION_DATA'))
conn.create_table(predictions, 'PREDICTIONS')Integration with ABAP
" Call HANA ML procedure from ABAP via ADBC
DATA(lo_sql) = NEW cl_sql_statement( ).
lo_sql->execute_ddl(
|CALL ZSP_REGRESSION_PREDICT( iv_model_name = 'LREG_001', |
& |iv_input_table = 'Z_NEW_DATA', iv_output_table = 'Z_PREDICTIONS' )|
).Available Algorithms
| Category | PAL Algorithms | APL Algorithms |
| Classification | SVM, Decision Tree, Random Forest, Naive Bayes | Automated classifier |
| Regression | Linear, Polynomial, GLM, Exponential | Automated regression |
| Clustering | K-Means, DBSCAN, Agglomerative | — |
| Time Series | ARIMA, Exponential Smoothing, Croston | Automated forecasting |
| Association | Apriori, FP-Growth | — |
| Recommendation | ALS (Collaborative Filtering) | — |
Gotchas
- PAL requires
_SYS_AFLschema privilege - Model training is CPU-intensive — use dedicated HANA worker threads
- Python client needs
hana_mlpip package + HANA ODBC driver - APL auto-selects best algorithm — use PAL when you need specific algorithm control
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

