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.

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

CREATE COLUMN TABLE <strong>PAL</strong>_AP_SEED_TBL LIKE <strong>PAL</strong>_AP_SEED_T;<br />

DROP TABLE #<strong>PAL</strong>_CONTROL_TBL;<br />

CREATE LOCAL TEMPORARY COLUMN TABLE #<strong>PAL</strong>_CONTROL_TBL LIKE <strong>PAL</strong>_CONTROL_T;<br />

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

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

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

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

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

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

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

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

CREATE COLUMN TABLE <strong>PAL</strong>_AP_RESULTS_TBL LIKE <strong>PAL</strong>_AP_RESULTS_T;<br />

CALL DM_<strong>PAL</strong>.<strong>PAL</strong>_AP(<strong>PAL</strong>_AP_DATA_TBL, <strong>PAL</strong>_AP_SEED_TBL, #<strong>PAL</strong>_CONTROL_TBL,<br />

<strong>PAL</strong>_AP_RESULTS_TBL) with OVERVIEW;<br />

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

Expected Result<br />

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