private String getTargetValueWithTheMaximumVotes(List<String> targetValues,
Table<String, Learner, Double> table) {
String targetValueWithMaxScore = targetValues[0];
double score = scoreOfValue(targetValueWithMaxScore, table, learners);
foreach (String value in targetValues) {
double _scoreOfValue = scoreOfValue(value, table, learners);
if (_scoreOfValue > score)
{
targetValueWithMaxScore = value;
score = _scoreOfValue;
}
}
return targetValueWithMaxScore;
}