Description: FP增长算法的实现与测试(Java实现)
1、程序编译运行环境Eclipse3.20+JDK1.60
2、程序参数说明
-F=filename
-S=support
-C=confidence
filename:数据集文件名,必须位于工程根目录下
support:支持度,位于0-100.0之间的任意数
confidence:置信度,位于0-100.0之间的任意数
例如:-F=anonymous-msweb.data -S=10.0 -C=45.0(参数顺序无关)
3. 程序正确性验证
工程中包含sample.txt文件用来验证。
具体方法:
(1)在AssociationRuleMining 类中,preprocessDataSet函数的最后一条语句替换为fileName = "sample.txt"
(2)在FPgrowth类中,main函数中的 myFPtree.outputARs2() 替换为 myFPtree.outputARs()
(3)输入正确格式的参数,数据集文件名可任意-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 Platform: |
Size: 540672 |
Author:frank |
Hits: