/** * Generates the tree. * * @param itemsets The dataset used to build the tree. * @throws Exception If the tree cannot be built. */ public void generateTree(Dataset itemsets) throws Exception { SelectCut selectCut; selectCut = new SelectCut(minItemsets, itemsets); root = new Tree(selectCut, prune, confidence); root.buildTree(itemsets); }