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.

Mandatory Parameter<br />

The following parameter is mandatory and must be given a value.<br />

Table 46:<br />

Name Data Type Description<br />

VARIABLE_NUM Integer Number of variables<br />

Optional Parameter<br />

The following parameter is optional. If it is not specified, <strong>PAL</strong> will use its default value.<br />

Table 47:<br />

Name Data Type Default Value Description<br />

THREAD_NUMBER Integer 1 Number of threads<br />

Output Table<br />

Table 48:<br />

Table Column Column Data Type Description<br />

Result 1st column Varchar or nvarchar Name<br />

2nd column Double Measure result<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 />

--table type for conv2binaryvector<br />

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

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

"ID" INTEGER,<br />

"V001" VARCHAR(5)<br />

);<br />

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

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

"ID" INTEGER,<br />

"A0" INTEGER,<br />

"A1" INTEGER,<br />

"A2" INTEGER,<br />

"A3" INTEGER<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 />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR(100)<br />

);<br />

--table type for silhouette<br />

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

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

"ID" INTEGER,<br />

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