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 Column Column Data Type Description Constraint<br />

2nd column Integer ID of the unit cells<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 />

The SOM Assign output table can also use the following format:<br />

Table 76:<br />

Table Column Column Data Type Description<br />

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

nvarchar<br />

ID of original tuples<br />

2nd column Integer Best match unit (BMU)<br />

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

and its BMU<br />

4th column Integer Second BMU<br />

5th column Integer Indicates whether the BMU<br />

and the second BMU are adjacent.<br />

●<br />

●<br />

0: Not adjacent<br />

1: Adjacent<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 />

Example 1: Classic SOM<br />

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

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

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

"TRANS_ID" INTEGER,<br />

"V000" DOUBLE,<br />

"V001" DOUBLE<br />

);<br />

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

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

"CELL_ID" INTEGER,<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 107

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

Saved successfully!

Ooh no, something went wrong!