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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the importance of each criterion. All of an alternative's weighted scores are then added together to calculate<br />

its total weighted score. The alternative with the highest total score should be the best alternative.<br />

You can use weighted score tables to make predictions about future customer behavior. You first create a<br />

model based on historical data in the data mining application, and then apply the model to new data to make<br />

the prediction. The prediction, that is, the output of the model, is called a score. You can create a single score<br />

for your customers by taking into account different dimensions.<br />

A function defined by weighted score tables is a linear combination of functions of a variable.<br />

f(x 1 ,…,x n ) = w 1 × f 1 (x 1 ) + … + w n × f n (x n )<br />

Prerequisites<br />

●<br />

●<br />

The input data does not contain null value.<br />

The column of the Map Function table is sorted by the attribute order of the Input Data table.<br />

WEIGHTEDTABLE<br />

This function performs weighted table calculation. It is similar to the Volume Driver function in the Business<br />

Function <strong>Library</strong> (BFL). Volume Driver calculates only one column, but weightedTable calculates multiple<br />

columns at the same time.<br />

Procedure Generation<br />

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

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

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

Table 424:<br />

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

1 <br />

IN<br />

2 IN<br />

3 <br />

IN<br />

4 IN<br />

5 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 />

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