Introduction - If you have any usage issues, please Google them yourself
FP growth algorithm implementation and testing (Java implementation)
1, compiled runtime environment Eclipse3.20+ JDK1.60
2, program parameters that
-F = filename
-S = support
-C = confidence
filename: data set file name, must be located project root directory
support: support, in any number between 0-100.0
confidence: confidence, any number in between 0-100.0
example:-F = anonymous-msweb.data-S = 10.0-C = 45.0 (parameter order has nothing to do)
3. program correctness verification project file contains sample.txt to verify. Specific methods:
(1) AssociationRuleMining class, preprocessDataSet last statement function is replaced fileName = " sample.txt"
(2) in the FPgrowth class, main function in the myFPtree.outputARs2 () replace myFPtree.outputARs ()
(3) Enter the correct format, parameters, file names can be arbitrary data set