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.

Name Data Type Default Value Description<br />

MODEL_FORMAT Integer 0 Specifies model format.<br />

●<br />

●<br />

0: Deserializes the tree<br />

model from JSON format.<br />

Other values: Deserializes<br />

the tree model from<br />

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 146:<br />

Table Column Column Data Type Description<br />

Result 1st column Integer ID<br />

2nd column Varchar or nvarchar <strong>Predictive</strong> result<br />

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

of the sample, which is a logarithmic<br />

value of the a-posterior<br />

probabilities.<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 />

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

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

CREATE TYPE <strong>PAL</strong>_NBCPREDICT_PREDICTION_T AS TABLE(<br />

"ID" INTEGER,<br />

"HomeOwner" VARCHAR(100),<br />

"MaritalStatus" VARCHAR(100),<br />

"AnnualIncome" DOUBLE<br />

);<br />

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

CREATE TYPE <strong>PAL</strong>_CONTROL_T AS TABLE(<br />

"NAME" VARCHAR (100),<br />

"INTARGS" INTEGER,<br />

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