Define a new ranking parameter. (#8887)

This commit is contained in:
Jiaming Yuan
2023-03-09 17:46:24 +08:00
committed by GitHub
parent e8a69013e6
commit 46dfcc7d22
6 changed files with 249 additions and 53 deletions

View File

@@ -234,7 +234,7 @@ struct EvalRank : public MetricNoCache, public EvalRankConfig {
protected:
explicit EvalRank(const char* name, const char* param) {
this->name = ltr::MakeMetricName(name, param, &topn, &minus);
this->name = ltr::ParseMetricName(name, param, &topn, &minus);
}
virtual double EvalGroup(PredIndPairContainer *recptr) const = 0;