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 <strong>PAL</strong>_BROWNSMOOTH_DATA_TBL VALUES (20,227.0);<br />

INSERT INTO <strong>PAL</strong>_BROWNSMOOTH_DATA_TBL VALUES (21,223.0);<br />

INSERT INTO <strong>PAL</strong>_BROWNSMOOTH_DATA_TBL VALUES (22,242.0);<br />

INSERT INTO <strong>PAL</strong>_BROWNSMOOTH_DATA_TBL VALUES (23,239.0);<br />

INSERT INTO <strong>PAL</strong>_BROWNSMOOTH_DATA_TBL VALUES (24,266.0);<br />

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

CREATE LOCAL TEMPORARY COLUMN TABLE #<strong>PAL</strong>_CONTROL_TBL ("NAME" VARCHAR(100),<br />

"INTARGS" INT, "DOUBLEARGS" DOUBLE, "STRINGARGS" VARCHAR(100));<br />

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

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('DELTA',NULL, 0.2, NULL);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('FORECAST_NUM',6, NULL, NULL);<br />

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

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

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('MEASURE_NAME', NULL, NULL, 'MSE');<br />

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

CREATE COLUMN TABLE <strong>PAL</strong>_BROWNSMOOTH_RESULT_TBL LIKE <strong>PAL</strong>_BROWNSMOOTH_RESULT_T ;<br />

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

CREATE COLUMN TABLE <strong>PAL</strong>_BROWNSMOOTH_STATISTIC_TBL LIKE<br />

<strong>PAL</strong>_BROWNSMOOTH_STATISTIC_T;<br />

CALL DM_<strong>PAL</strong>.BROWNSMOOTH_TEST_PROC(<strong>PAL</strong>_BROWNSMOOTH_DATA_TBL, "#<strong>PAL</strong>_CONTROL_TBL",<br />

<strong>PAL</strong>_BROWNSMOOTH_RESULT_TBL, <strong>PAL</strong>_BROWNSMOOTH_STATISTIC_TBL)WITH OVERVIEW;<br />

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

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

Expected Result<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 359

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

Saved successfully!

Ooh no, something went wrong!