From c184852b32fcbca9235564fbd304db3b883ffd49 Mon Sep 17 00:00:00 2001 From: Guolin Ke Date: Wed, 20 Jun 2018 11:30:28 +0800 Subject: [PATCH] fix #1461 --- src/objective/objective_function.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objective/objective_function.cpp b/src/objective/objective_function.cpp index 913947585b89..19cb4e01aabf 100644 --- a/src/objective/objective_function.cpp +++ b/src/objective/objective_function.cpp @@ -73,6 +73,8 @@ ObjectiveFunction* ObjectiveFunction::CreateObjectiveFunction(const std::string& return new CrossEntropy(strs); } else if (type == std::string("xentlambda") || type == std::string("cross_entropy_lambda")) { return new CrossEntropyLambda(strs); + } else if (type == std::string("mean_absolute_percentage_error") || type == std::string("mape")) { + return new RegressionMAPELOSS(strs); } else if (type == std::string("gamma")) { return new RegressionGammaLoss(strs); } else if (type == std::string("tweedie")) {