下面列出了怎么用weka.core.Tag的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* 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();
}
/**
* Returns the underlying tags.
*
* @return the tags
*/
public Tag[] getMetricsTags() {
return m_Metrics.getTags();
}
/**
* Returns the tags to used in the GUI.
*
* @return the tags
*/
@Override
public Tag[] getTags() {
return TAGS_EVALUATION;
}