📄 fpgrowthapp.java
字号:
/* ---------------------------------------------------------------------- *//* *//* FP GROWTH APPLICATION *//* *//* Frans Coenen *//* *//* Thursday 5th February 2003 *//* *//* Department of Computer Science *//* The University of Liverpool *//* */ /* ---------------------------------------------------------------------- */import java.io.*;public class FPgrowthApp { // ------------------- FIELDS ------------------------ // None // ---------------- CONSTRUCTORS --------------------- // None // ------------------ METHODS ------------------------ public static void main(String[] args) throws IOException { // Create instance of class FPTree FPtree newFPtree = new FPtree(args); // Read data to be mined from file newFPtree.inputDataSet(); // Reorder and prune input data according to frequency of single //attributes newFPtree.idInputDataOrdering(); newFPtree.recastInputDataAndPruneUnsupportedAtts(); newFPtree.setNumOneItemSets();newFPtree.outputDataArray(); // Build initial FP-tree double time1 = (double) System.currentTimeMillis(); newFPtree.createFPtree(); newFPtree.outputDuration(time1,(double) System.currentTimeMillis()); newFPtree.outputFPtreeStorage(); newFPtree.outputFPtree();newFPtree.outputItemPrefixSubtree(); // Mine FP-tree time1 = (double) System.currentTimeMillis(); newFPtree.startMining(); newFPtree.outputDuration(time1,(double) System.currentTimeMillis());newFPtree.outputStorage(); newFPtree.outputNumFreqSets(); newFPtree.outputTtree(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -