/** * Get the value of a plugin metric * * @param m the metric to get the value from * @param statName the name of the statistic to get the value of * @param classValIndex the optional class value index * @return the value of the metric * @throws Exception if a problem occurs */ protected double getPluginMetricValue(AbstractEvaluationMetric m, String statName, int... classValIndex) throws Exception { boolean hasValIndex = classValIndex != null && classValIndex.length == 1; if (m instanceof InformationRetrievalEvaluationMetric) { return hasValIndex ? ((InformationRetrievalEvaluationMetric) m) .getStatistic(statName, classValIndex[0]) : ((InformationRetrievalEvaluationMetric) m) .getClassWeightedAverageStatistic(statName); } return m.getStatistic(statName); }
List<String> statNames = m.getStatisticNames(); for (String s : statNames) { result[current++] = new Double(m.getStatistic(s));
List<String> statNames = m.getStatisticNames(); for (String s : statNames) { result[current++] = new Double(m.getStatistic(s));
/** * Get the value of a plugin metric * * @param m the metric to get the value from * @param statName the name of the statistic to get the value of * @param classValIndex the optional class value index * @return the value of the metric * @throws Exception if a problem occurs */ protected double getPluginMetricValue(AbstractEvaluationMetric m, String statName, int... classValIndex) throws Exception { boolean hasValIndex = classValIndex != null && classValIndex.length == 1; if (m instanceof InformationRetrievalEvaluationMetric) { return hasValIndex ? ((InformationRetrievalEvaluationMetric) m) .getStatistic(statName, classValIndex[0]) : ((InformationRetrievalEvaluationMetric) m) .getClassWeightedAverageStatistic(statName); } return m.getStatistic(statName); }
List<String> statNames = m.getStatisticNames(); for (String s : statNames) { result[current++] = new Double(m.getStatistic(s));
evalMetric = pluginMetric.getStatistic(statName);
List<String> statNames = m.getStatisticNames(); for (String s : statNames) { result[current++] = new Double(m.getStatistic(s));
evalMetric = pluginMetric.getStatistic(statName);
evalMetric = pluginMetric.getStatistic(statName);
evalMetric = pluginMetric.getStatistic(statName);
repError[i] = pluginMetric.getStatistic(statName);
repError[i] = pluginMetric.getStatistic(statName);