Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

The Support Calculation process is the second phase of the APriori algorithm, which is done after the Candidate Generation process ( jeyakumar.muthu2/blog/2005/12/19/data-mining-using-apriori-algorithm-in-xi-150-part-ii ).


This process counts the Support for every candidate that is generated in the Candidate Generation process.

So, this process needs two input files. One is the output file of Candidate Generation process and other is the initial input file. The first file has the following XSD structure,



The second input file has the following XSD structure,



The support is calculated by the number of times the candidate set has occurred in the itemset. So the output file has the candidates and their corresponding support counts.


The output file has the following XSD structure,



In the message mapping, the source message has two message types.



Next we will look at Message Mapping. In this, both the input files are given as input to the User-Defined function, which will generate the candidate sets and their support counts separately.



In this mapping, we have to change the context of ITEMSET to FC_Input_MT. This is shown in the following picture.



Next is the User-Defined function, which will generate the support counts for every candidate.


The User-Defined Function



Code Sample



The Integration Process


In this integration process, the Fork node has two branches. In every branch, there is one Receive node. The Receive nodes in two branches are responsible for getting the input files. The Fork node gets terminated when the two input files are fetched. Then the mapping is done by the Transformation and the output is sent through the Send node.



Finally, do all the necessary configuration settings for this Support Calculation process.


The Input File



The Output File



3 Comments