/** * Returns a string that summarizes the object. * * @return the object summarized as a string */ public String toSummaryString() { String result; result = "Best classifier: " + getCommandline(getBestClassifier()); return result; }
/** * returns a string representation of the classifier. * * @return a string representation of the classifier */ @Override public String toString() { StringBuilder result; int i; result = new StringBuilder(); if (getBestValues() == null) { result.append("No search performed yet."); } else { result.append(this.getClass().getName() + ":\n" + "Classifier: " + getCommandline(getBestClassifier()) + "\n\n"); for (i = 0; i < m_Parameters.length; i++) result.append((i+1) + ". parameter: " + m_Parameters[i] + "\n"); result.append("Evaluation: " + getEvaluation().getSelectedTag().getReadable() + "\n" + "Coordinates: " + getBestCoordinates() + "\n"); result.append("Values: " + getBestValues() + "\n\n" + m_Classifier.toString()); if (m_Debug) { result.append("\n\nTrace (format: #. folds/performance - setup):\n"); for (i = 0; i < getTraceSize(); i++) { result.append("\n" + (i + 1) + ". " + getTraceFolds(i) + "/" + getTraceValue(i) + " - " + getTraceClassifierAsCli(i)); } } } return result.toString(); }