microsoft/SynapseML

[LightGBM] Regression: how to penalize negative predictions

已关闭

#918 创建于 2020年9月2日

 (18 条评论) (0 个反应) (2 位负责人)Scala (861 个派生)batch import
area/lightgbmenhancementgood first issue

仓库指标

星标
 (5,228 个星标)
PR 合并指标
 (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!

贡献者指南