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 Dependency<br />

CATEGORY_COL Integer No default value Indicates whether the<br />

column is category<br />

variable. By default,<br />

'string' is category variable,<br />

and 'integer' or<br />

'double' is continuous<br />

variable.<br />

CATEGORY_WEIGHTS Double 0.707 Represents the weight<br />

of category attributes<br />

(γ).<br />

EXIT_THRESHOLD Double 0.000000001 Threshold (actual<br />

value) for exiting the<br />

iterations.<br />

Output Tables<br />

Table 62:<br />

Table Column Column Data Type Description<br />

Result 1st column Integer, bigint, varchar, or<br />

nvarchar<br />

ID<br />

2nd column Integer Clustered item assigned to<br />

class number<br />

3rd column Double The distance between the<br />

cluster and each point in the<br />

cluster<br />

Center Points 1st column Integer Cluster center ID<br />

Other columns Double, varchar, or nvarchar Outputs means if the column<br />

is continuous variable; outputs<br />

modes if the column is<br />

category variable.<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>_KMEDOIDS_DATA_T;<br />

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

"ID" INTEGER,<br />

"V000" DOUBLE,<br />

"V001" VARCHAR(5),<br />

"V002" DOUBLE<br />

);<br />

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

CREATE TYPE <strong>PAL</strong>_KMEDOIDS_ASSIGN_T AS TABLE(<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 87

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

Saved successfully!

Ooh no, something went wrong!