5:12 PM

FPgApp.java

CODING



import java.io.*;
public class FPgApp {
public static void main(String[] args) throws IOException {

// Create instance of class FPTree
FPtree newFPtree = new FPtree1(args);

// Read data to be mined from file
newFPtree.inputDataSet();

// Reorder and prune input data according to frequency of attributes
newFPtree.idInputDataOrdering();
newFPtree.prune();
newFPtree.setNumOneItemSets();
newFPtree.outputDataArray();

// Build initial FP-tree
newFPtree.createFPtree();
newFPtree.outputFPtree();
newFPtree.outputItemPrefixSubtree();

// Mine FP-tree
newFPtree.startMining();
newFPtree.outputNumFreqSets();
newFPtree.outputTtree();
newFPtree.outputStorage();
}
}

0 comments: