AIMA.Core.Learning.Learners.AdaBoostLearner.getTargetValueWithTheMaximumVotes C# (CSharp) Method

getTargetValueWithTheMaximumVotes() private method

private getTargetValueWithTheMaximumVotes ( List targetValues, Table table ) : String
targetValues List
table Table
return String
        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;
	}