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 PARAMETERS_TBL VALUES ('TOPICS',6,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('BURNIN',50,null,null);<br />

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

INSERT INTO PARAMETERS_TBL VALUES ('ITERATION',100,null,null);<br />

INSERT INTO PARAMETERS_TBL VALUES ('SEED',33,null,null);<br />

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

INSERT INTO PARAMETERS_TBL VALUES ('MAX_TOP_WORDS',5,null,null);<br />

DROP TABLE DICTIONARY_TBL;<br />

CREATE COLUMN TABLE DICTIONARY_TBL LIKE DICTIONARY_T;<br />

DROP TABLE TOPICWORDDIST_TBL;<br />

CREATE COLUMN TABLE TOPICWORDDIST_TBL LIKE TOPICWORDDISTRIBUTION_T;<br />

DROP TABLE DOCTOPICDIST_TBL;<br />

CREATE COLUMN TABLE DOCTOPICDIST_TBL LIKE DOCTOPICDISTRIBUTION_T;<br />

DROP TABLE GENERALINFO_TBL;<br />

CREATE COLUMN TABLE GENERALINFO_TBL LIKE GENERALINFO_T;<br />

DROP TABLE TOPWORDS_TBL;<br />

CREATE COLUMN TABLE TOPWORDS_TBL LIKE TOPWORDS_T;<br />

CALL DM_<strong>PAL</strong>.<strong>PAL</strong>_LDAESTIMATE(DATA_TBL, PARAMETERS_TBL, DICTIONARY_TBL,<br />

TOPICWORDDIST_TBL, DOCTOPICDIST_TBL, GENERALINFO_TBL, TOPWORDS_TBL) with<br />

overview;<br />

SELECT * FROM DICTIONARY_TBL;<br />

SELECT * FROM TOPICWORDDIST_TBL;<br />

SELECT * FROM DOCTOPICDIST_TBL;<br />

SELECT * FROM GENERALINFO_TBL;<br />

SELECT * FROM TOPWORDS_TBL;<br />

Expected Results<br />

DICTIONARY_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 95

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

Saved successfully!

Ooh no, something went wrong!