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.

<strong>PAL</strong>_KMEANS_MODEL_TBL:<br />

VALIDATEKMEANS<br />

This is a quality measurement function for k-means clustering. The current version of VALIDATEKMEANS<br />

does not support category attributes. You can use the CONV2BINARYVECTOR algorithm to convert category<br />

attributes into binary vectors, and then use them as continuous attributes.<br />

Procedure Generation<br />

CALL SYS.AFLLANG_WRAPPER_PROCEDURE_CREATE (‘AFL<strong>PAL</strong>’, ‘VALIDATEKMEANS’,<br />

‘’, '', );<br />

The signature table should contain the following records:<br />

Table 44:<br />

Position Schema Name Table Type Name Parameter Type<br />

1 <br />

2 <br />

IN<br />

IN<br />

3 IN<br />

4 OUT<br />

Procedure Calling<br />

CALL .(, ,<br />

, ) with overview;<br />

The procedure name is the same as specified in the procedure generation.<br />

The input, parameter, and output tables must be of the types specified in the signature table.<br />

Signature<br />

Input Tables<br />

Table 45:<br />

Table Column Column Data Type Description<br />

Data 1st column Integer ID<br />

Other columns Integer or double Attribute data<br />

Type Data/ Class Data 1st column Integer ID<br />

2nd column Integer Class type<br />

Parameter 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 73

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

Saved successfully!

Ooh no, something went wrong!