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 -1 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. The value of<br />

-1 means the default<br />

will be used.<br />

CATEGORY_WEIGHTS Double 0.707 Represents the weight<br />

of category attributes<br />

(γ).<br />

Output Tables<br />

Table 26:<br />

Table Column Column Data Type Description Constraint<br />

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

or nvarchar<br />

ID<br />

This must be the first<br />

column.<br />

2nd column Integer Cluster ID (from 0 to<br />

cluster_number − 1)<br />

Note: -1 means the<br />

point is labeled as<br />

noise.<br />

Cluster Model (optional)<br />

1st column Integer Cluster model ID This must be the first<br />

column.<br />

2nd column<br />

CLOB, varchar, or<br />

Cluster model saved<br />

The table must be a<br />

nvarchar<br />

as JSON string<br />

column table. The minimum<br />

length of each<br />

unit (row) is 5000.<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>_DBSCAN_DATA_T;<br />

CREATE TYPE <strong>PAL</strong>_DBSCAN_DATA_T AS TABLE ( ID integer, ATTRIB1 double, ATTRIB2<br />

double);<br />

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