25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Name Data Type Default Value Description Dependency<br />

PREDICTION_CONFI­<br />

DENCE_2<br />

Double 0.95 Prediction confidence<br />

for interval 2<br />

Only valid when the<br />

upper and lower columns<br />

are provided in<br />

the result table.<br />

Output Table<br />

Table 289:<br />

Table Column Column Data Type Description<br />

Result 1st column Integer ID<br />

2nd column Integer or double Output result<br />

3rd column Integer or double Lower bound of prediction<br />

interval 1<br />

4th column Integer or double Upper bound of prediction<br />

interval 1<br />

5th column Integer or double Lower bound of prediction<br />

interval 2<br />

6th column Integer or double Upper bound of prediction<br />

interval 2<br />

Statistics (optional) 1st column Varchar or nvarchar Name of statistics<br />

2nd column Double Value of statistics<br />

Example<br />

Assume that:<br />

●<br />

●<br />

●<br />

DM_<strong>PAL</strong> is a schema belonging to USER1; and<br />

USER1 has been assigned the AFLPM_CREATOR_ERASER_EXECUTE role; and<br />

USER1 has been assigned the AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE or<br />

AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE_WITH_GRANT_OPTION role.<br />

SET SCHEMA DM_<strong>PAL</strong>;<br />

DROP TYPE <strong>PAL</strong>_DOUBLESMOOTH_DATA_T;<br />

CREATE TYPE <strong>PAL</strong>_DOUBLESMOOTH_DATA_T AS TABLE("ID" INT, "RAWDATA" DOUBLE);<br />

DROP TYPE <strong>PAL</strong>_DOUBLESMOOTH_RESULT_T;<br />

CREATE TYPE <strong>PAL</strong>_DOUBLESMOOTH_RESULT_T AS TABLE("TIME" INT, "OUTPUT" DOUBLE,<br />

"LOWER1" DOUBLE, "UPPER1" DOUBLE, "LOWER2" DOUBLE, "UPPER2" DOUBLE);<br />

DROP TYPE <strong>PAL</strong>_CONTROL_T;<br />

CREATE TYPE <strong>PAL</strong>_CONTROL_T AS TABLE("NAME" VARCHAR(100), "INTARGS" INT,<br />

"DOUBLEARGS" DOUBLE, "STRINGARGS" VARCHAR(100));<br />

DROP TYPE <strong>PAL</strong>_DOUBLESMOOTH_STATISTIC_T;<br />

CREATE TYPE <strong>PAL</strong>_DOUBLESMOOTH_STATISTIC_T AS TABLE("NAME" VARCHAR(100), "VALUE"<br />

DOUBLE);<br />

DROP TABLE <strong>PAL</strong>_DOUBLESMOOTH_STATISTIC_TBL;<br />

404 P U B L I C<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!