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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Name Data Type Default Value Description<br />

TIMEOUT Integer 3600 The function will automatically<br />

terminate if its running<br />

time is longer than the TIME­<br />

OUT value (unit: second).<br />

Output Tables<br />

Table 239:<br />

Table Column Column Data Type Description<br />

Prerule Result 1st column Integer Rule ID<br />

2nd column Varchar or nvarchar Item<br />

Postrule Result 1st column Integer Rule ID<br />

2nd column Varchar or nvarchar Item<br />

Statistics Result 1st column Integer Rule ID<br />

2nd column Double Support<br />

3rd column Double Confidence<br />

4th column Double Lift<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>_FPGROWTH_DATA_T;<br />

CREATE TYPE <strong>PAL</strong>_FPGROWTH_DATA_T AS TABLE(<br />

"TRANS" INTEGER,<br />

"ITEM" INTEGER<br />

);<br />

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

CREATE TYPE <strong>PAL</strong>_CONTROL_T AS TABLE(<br />

"NAME" VARCHAR(100),<br />

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR(100)<br />

);<br />

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

CREATE TYPE <strong>PAL</strong>_FPGROWTH_PRERULE_T AS TABLE(<br />

"ID" INTEGER,<br />

"PRERULE" INTEGER<br />

312 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!