Java Code Examples for weka.core.Tag

The following examples show how to use weka.core.Tag. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: meka   Source File: AbstractMultiSearch.java    License: GNU General Public License v3.0 6 votes vote down vote up
/**
 * generates a table string for all the performances in the space and returns
 * that.
 *
 * @param space		the current space to align the performances to
 * @param performances	the performances to align
 * @param type		the type of performance
 * @return			the table string
 */
public String logPerformances(Space space, Vector<Performance> performances, Tag type) {
	StringBuffer	result;
	int			i;

	result = new StringBuffer(type.getReadable() + ":\n");

	result.append(space.toString());
	result.append("\n");
	for (i = 0; i < performances.size(); i++) {
		result.append(performances.get(i).getPerformance(type.getID()));
		result.append("\n");
	}
	result.append("\n");

	return result.toString();
}
 
Example 2
Source Project: meka   Source File: AbstractMultiSearch.java    License: GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the underlying tags.
 *
 * @return		the tags
 */
public Tag[] getMetricsTags() {
	return m_Metrics.getTags();
}
 
Example 3
Source Project: meka   Source File: MekaEvaluationMetrics.java    License: GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the tags to used in the GUI.
 *
 * @return		the tags
 */
@Override
public Tag[] getTags() {
	return TAGS_EVALUATION;
}