C++14 for xgboost (#5664)

This commit is contained in:
Andy Adinets
2020-05-21 02:26:40 +02:00
committed by GitHub
parent 60511a3222
commit 646def51e0
13 changed files with 22 additions and 16 deletions

View File

@@ -314,7 +314,7 @@ class NDCGLambdaWeightComputer
for (size_t i = 0; i < sorted_list.size(); ++i) {
labels[i] = sorted_list[i].label;
}
std::stable_sort(labels.begin(), labels.end(), std::greater<bst_float>());
std::stable_sort(labels.begin(), labels.end(), std::greater<>());
IDCG = ComputeGroupDCGWeight(&labels[0], labels.size());
}
if (IDCG == 0.0) {