microsoft/SynapseML

[LightGBM] Regression: how to penalize negative predictions

Open

#918 建立於 2020年9月2日

在 GitHub 查看
 (18 留言) (0 反應) (2 負責人)Scala (861 fork)batch import
area/lightgbmenhancementgood first issue

倉庫指標

Star
 (5,228 star)
PR 合併指標
 (平均合併 23小時 16分鐘) (30 天內合併 2 個 PR)

描述

I have a simple regression task (using a LightGBMRegressor) where I want to penalize negative predictions more than positive ones. Is there a way to achieve this with the default regression LightGBM objectives (see https://lightgbm.readthedocs.io/en/latest/Parameters.html)? If not, is it somehow possible to define (many example for default LightGBM model) and pass a custom regression objective?

Thx in advance!

貢獻者指南