@Override public String toString(){
  if (m_bagger == null) {
    return "Random forest not built yet";
  }
 else {
    StringBuffer temp=new StringBuffer();
    temp.append("Random forest of " + m_numTrees + " trees, each constructed while considering "+ m_KValue+ " random feature"+ (m_KValue == 1 ? "" : "s")+ ".\n"+ (!getDontCalculateOutOfBagError() ? "Out of bag error: " + Utils.doubleToString(m_bagger.measureOutOfBagError(),4) : "")+ "\n"+ (getMaxDepth() > 0 ? ("Max. depth of trees: " + getMaxDepth() + "\n") : (""))+ "\n");
    if (m_printTrees) {
      temp.append(m_bagger.toString());
    }
    return temp.toString();
  }
}

@ Override public String toString ( ) { if ( m_bagger == null ) { return "Random forest not built yet" ; } else { StringBuffer temp = new StringBuffer ( ) ; temp . append ( "Random forest of " + m_numTrees + " trees, each constructed while considering " + m_KValue + " random feature" + ( m_KValue == 1 ? "" : "s" ) + ".\n" + ( ! getDontCalculateOutOfBagError ( ) ? "Out of bag error: " + Utils . doubleToString ( m_bagger . measureOutOfBagError ( ) , 4 ) : "" ) + "\n" + ( getMaxDepth ( ) > 0 ? ( "Max. depth of trees: " + getMaxDepth ( ) + "\n" ) : ( "" ) ) + "\n" ) ; if ( m_printTrees ) { temp . append ( m_bagger . toString ( ) ) ; } return temp . toString ( ) ; } }
outputs a description of this classifier .
