Skip to content
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

Support for Loss Matrix (Cost Sensitive Classification) #10

Open
RoyiAvital opened this issue May 18, 2024 · 2 comments
Open

Support for Loss Matrix (Cost Sensitive Classification) #10

RoyiAvital opened this issue May 18, 2024 · 2 comments

Comments

@RoyiAvital
Copy link

Have you thought on the following case, Cost Sensitive Classification:

$$ \boldsymbol{L} = \begin{bmatrix} l \left( y = 1, \hat{y} = 1 \right) & l \left( y = 1, \hat{y} = 2 \right) & \dots & l \left( y = 1, \hat{y} = K \right) \\ l \left( y = 2, \hat{y} = 1 \right) & l \left( y = 2, \hat{y} = 2 \right) & \dots & l \left( y = 2, \hat{y} = K \right) \\ \vdots & \vdots & \vdots & \vdots \\ l \left( y = K, \hat{y} = 1 \right) & l \left( y = K, \hat{y} = 2 \right) & \dots & l \left( y = K, \hat{y} = K \right) \end{bmatrix} $$

Is there a way to implement is where the Gradient and Hessian are easy to calculate for LightGBM?

@adamingas
Copy link
Owner

Hello, sorry for not getting back to you, I don't receive notifications for issues and I need to fix that. Will take a look over the weekend to see if something like this could be implemented.

@RoyiAvital
Copy link
Author

@adamingas , On Settings -> Notifications make sure you have GitHub in the list:

image

It would be great to have a package with Cost Sensitive classification.
Even just as a demo wrapper for XGBoost / LightGBM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants