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.

Table 137:<br />

Name Data Type Default Value Description<br />

MODEL_TYPE Integer 1 ● 1: Model table should be<br />

in non-PMML format<br />

● 2: Model table should be<br />

in PMML format<br />

VERBOSE_OUTPUT Integer 0 ● 1: Outputs the probability<br />

of all label categories<br />

● 0: Outputs the category<br />

of the highest probability<br />

only<br />

Output Table<br />

Table 138:<br />

Table Column Column Data Type Description<br />

Result 1st column Integer ID<br />

2nd column Varchar or nvarchar Predicted label for the sample<br />

3rd column Double Confidence for the prediction<br />

of the sample<br />

Example<br />

Assume that:<br />

●<br />

●<br />

●<br />

DM_<strong>PAL</strong> is a schema belonging to USER1; and<br />

USER1 has been assigned the AFLPM_CREATOR_ERASER_EXECUTE role; and<br />

USER1 has been assigned the AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE or<br />

AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE_WITH_GRANT_OPTION role.<br />

Prediction with non-PMML input:<br />

SET SCHEMA DM_<strong>PAL</strong>;<br />

DROP TYPE <strong>PAL</strong>_LRMCTE_DATA_T;<br />

CREATE TYPE <strong>PAL</strong>_LRMCTE_DATA_T<br />

AS TABLE<br />

(<br />

"ID" INTEGER,<br />

"V1" VARCHAR (50),<br />

"V2" DOUBLE,<br />

"V3" INTEGER<br />

);<br />

DROP TYPE <strong>PAL</strong>_LRMCTE_RESULT_T;<br />

CREATE TYPE <strong>PAL</strong>_LRMCTE_RESULT_T<br />

AS TABLE<br />

(<br />

"ID" INTEGER,<br />

"Y" varchar(100),<br />

"Lik" DOUBLE<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 187

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

Saved successfully!

Ooh no, something went wrong!