Add quantile metric. (#8761)

This commit is contained in:
Jiaming Yuan
2023-02-13 19:07:40 +08:00
committed by GitHub
parent d11a0044cf
commit 457f704e3d
11 changed files with 313 additions and 4 deletions

View File

@@ -695,6 +695,11 @@ class LearnerConfiguration : public Learner {
});
} else if (IsA<Object>(kv.second)) {
stack.push(kv.second);
} else if (kv.first == "metrics") {
auto const& array = get<Array const>(kv.second);
for (auto const& v : array) {
stack.push(v);
}
}
}
}