Esempio n. 1
0
  /**
   * Returns a superconcise version of the model
   *
   * @return a summary of the model
   */
  public String toSummaryString() {

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