示例#1
0
文件: C45.java 项目: Navieclipse/KEEL
  /**
   * 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);
  }
示例#2
0
文件: C45.java 项目: Navieclipse/KEEL
 /** Function to print the tree. */
 public String toString() {
   return root.toString();
 }
示例#3
0
文件: C45.java 项目: Navieclipse/KEEL
 /**
  * Returns class probabilities for an itemset.
  *
  * @param itemset The itemset.
  * @throws Exception If cannot compute the classification.
  */
 public final double[] classificationForItemset(Itemset itemset) throws Exception {
   return root.classificationForItemset(itemset);
 }