Unverified Commit 24298edf authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

clarify warning about small target values with MAPE (#3615)

parent 6320f1df
......@@ -587,7 +587,9 @@ class RegressionMAPELOSS : public RegressionL1loss {
RegressionL2loss::Init(metadata, num_data);
for (data_size_t i = 0; i < num_data_; ++i) {
if (std::fabs(label_[i]) < 1) {
Log::Warning("Met 'abs(label) < 1', will convert them to '1' in MAPE objective and metric");
Log::Warning(
"Some label values are < 1 in absolute value. MAPE is unstable with such values, "
"so LightGBM rounds them to 1.0 when calculating MAPE.");
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment