-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom loss function for the multiple responses/outputs #1985
Comments
you can base on multi-class template, and write the customed objective functions. |
@guolinke Thank you for your reply. I am writing to seek further assistant from you about this issue. I found that the lgb.Dataset store label (y) as univariate. Multiclass is still univariate ( unique(y) = 0, 1, 2 ) case. In my case, it is multivariate/multi-output ( for bivariate case y = (0, 100), (1, 200), (0, -10), ...etc ). Thank you for your help. |
Hi @junjiwoo
BTW, for the step 4, you may need to some shares between two datasets, as your objective function needs the information from both two data. |
Thank you for your prompt response. I will follow your advice. I saw many related questions and requests. To the best of my knowledge, nobody implemented this yet. (gbm, mvtboost, xgboost, h2o) |
We already have an issue related to multi-output: #524. I think it's better to keep the discussion in one place. |
To be more simple, bivariate case, y_1 is 0 or 1, y_2 is continuous. Is it possible to customize the loss function to L = Gini + SSE? Or L = classification lossVregression loss where V can be a matrix for higher dimension.
The text was updated successfully, but these errors were encountered: