Exemple #1
0
  /** Returns a superconcise version of the model */
  public String toSummaryString() {

    return "Number of leaves: "
        + m_root.numLeaves()
        + "\n"
        + "Size of the tree: "
        + m_root.numNodes()
        + "\n";
  }
Exemple #2
0
 /**
  * Returns the number of rules (same as number of leaves)
  *
  * @return the number of rules
  */
 public double measureNumRules() {
   return m_root.numLeaves();
 }