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.

3.4.2 FP-Growth<br />

FP-Growth is an algorithm to find frequent patterns from transactions without generating a candidate itemset.<br />

In <strong>PAL</strong>, the FP-Growth algorithm is extended to find association rules in three steps:<br />

1. Converts the transactions into a compressed frequent pattern tree (FP-Tree);<br />

2. Recursively finds frequent patterns from the FP-Tree;<br />

3. Generates association rules based on the frequent patterns found in Step 2.<br />

FP-Growth with relational output is also supported.<br />

Prerequisites<br />

●<br />

●<br />

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

There are no duplicated items in each transaction.<br />

FPGROWTH<br />

This function reads input transaction data and generates association rules by the FP-Growth algorithm.<br />

Procedure Generation<br />

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

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

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

Table 232:<br />

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

1 IN<br />

2 IN<br />

3 <br />

OUT<br />

Procedure Calling<br />

CALL .(, , ) 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 Table<br />

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