LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

Log loss for regression

Open miguelgfierro opened this issue 9 years ago • 3 comments

I'm trying to replicate in LightGBM this code in XGBoost using the python API:

clf = xgb.XGBRegressor()
clf.fit(trn_x, trn_y, eval_set=[(val_x, val_y)], verbose=True, eval_metric='logloss', early_stopping_rounds=100)

How can I implement the evaluation metric log loss?

miguelgfierro avatar Jan 25 '17 21:01 miguelgfierro

please look at the examples

and the metric supported by LightGBM can be found at here

chivee avatar Jan 26 '17 03:01 chivee

@miguelgfierro "eval_metric=binary_logloss"

guolinke avatar Jan 26 '17 10:01 guolinke

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

github-actions[bot] avatar Aug 24 '23 02:08 github-actions[bot]