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.

"STRINGARGS" VARCHAR (100)<br />

);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('THREAD_NUMBER', 2, null, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('MIN_SUPPORT', null, 0.1, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('MIN_CONFIDENCE', null, 0.3, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('MIN_LIFT', null, 1.1, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('MAX_CONSEQUENT', 1, null, null);<br />

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

CREATE COLUMN TABLE <strong>PAL</strong>_APRIORI_RESULT_TBL LIKE <strong>PAL</strong>_APRIORI_RESULT_T;<br />

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

CREATE COLUMN TABLE <strong>PAL</strong>_APRIORI_PMMLMODEL_TBL LIKE <strong>PAL</strong>_APRIORI_PMMLMODEL_T;<br />

CALL "DM_<strong>PAL</strong>".<strong>PAL</strong>_APRIORI_RULE_PROC(<strong>PAL</strong>_APRIORI_TRANS_TBL, #<strong>PAL</strong>_CONTROL_TBL,<br />

<strong>PAL</strong>_APRIORI_RESULT_TBL, <strong>PAL</strong>_APRIORI_PMMLMODEL_TBL) WITH overview;<br />

SELECT * FROM <strong>PAL</strong>_APRIORI_RESULT_TBL;<br />

SELECT * FROM <strong>PAL</strong>_APRIORI_PMMLMODEL_TBL;<br />

Expected Result:<br />

<strong>PAL</strong>_APRIORI_RESULT_TBL:<br />

APRIORIRULE2<br />

This function has the same logic with APRIORIRULE, but it splits the result table into three tables.<br />

Procedure Generation<br />

CALL SYS.AFLLANG_WRAPPER_PROCEDURE_CREATE (‘AFL<strong>PAL</strong>’, ‘APRIORIRULE2’,<br />

‘’, '', );<br />

The signature table should contain the following records:<br />

Table 222:<br />

Position Schema Name Table Type Name Parameter Type<br />

1 IN<br />

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

<strong>PAL</strong> Functions P U B L I C 291

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

Saved successfully!

Ooh no, something went wrong!