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.

INSERT INTO DATA_TBL VALUES ('17', 16.5, 1.5, 'A');<br />

INSERT INTO DATA_TBL VALUES ('18', 15.5, 1.5, 'A');<br />

INSERT INTO DATA_TBL VALUES ('19', 15.7, 1.6, 'A');<br />

DROP TABLE PARAMETERS_TBL;<br />

CREATE COLUMN TABLE PARAMETERS_TBL like PARAMETERS_T;<br />

INSERT INTO PARAMETERS_TBL VALUES ('THREAD_NUM',8,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('CLUSTER_NUM',4,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('CLUSTER_METHOD',4,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('DISTANCE_FUNC',10,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('DISTANCE_DIMENSION',null,3,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('NORMALIZE_TYPE',0,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('CATEGORY_WEIGHTS',null,0.1,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('CATEGORY_COL',3,null,null);<br />

DROP TABLE COMBINEPROCESS_TBL;<br />

CREATE COLUMN TABLE COMBINEPROCESS_TBL like COMBINEPROCESS_T;<br />

DROP TABLE RESULT_TBL;<br />

CREATE COLUMN TABLE RESULT_TBL like RESULT_T;<br />

CALL DM_<strong>PAL</strong>.<strong>PAL</strong>_HCAGGLOMERATE(DATA_TBL, PARAMETERS_TBL, COMBINEPROCESS_TBL,<br />

RESULT_TBL) with overview;<br />

select * from COMBINEPROCESS_TBL;<br />

select * from RESULT_TBL;<br />

Expected Result<br />

COMBINEPROCESS_TBL:<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 31

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

Saved successfully!

Ooh no, something went wrong!