Skip to content

Commit

Permalink
Add MAE loss test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 574830522
  • Loading branch information
achoum authored and copybara-github committed Oct 19, 2023
1 parent 9149829 commit ba12f1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Feature

- Mean average error loss for GBT.
- Add support for Mean average error (MAE) loss for GBT.

## 1.6.0 - 2023-09-28

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,8 @@ template <>
absl::Status GenericToSpecializedModel(
const model::gradient_boosted_trees::GradientBoostedTreesModel& src,
GradientBoostedTreesRegressionQuickScorerExtended* dst) {
if (src.loss() != Loss::SQUARED_ERROR) {
if (src.loss() != Loss::SQUARED_ERROR &&
src.loss() != Loss::MEAN_AVERAGE_ERROR) {
return absl::InvalidArgumentError(
"The GBDT is not trained for regression with squared error loss.");
}
Expand Down

0 comments on commit ba12f1b

Please sign in to comment.