⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fpgrowthapp.java

📁 java platform java-growth algorithm
💻 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 + -