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

Expose ObjectiveFunction class to the Python API #6585

Open
neNasko1 opened this issue Aug 1, 2024 · 1 comment
Open

Expose ObjectiveFunction class to the Python API #6585

neNasko1 opened this issue Aug 1, 2024 · 1 comment

Comments

@neNasko1
Copy link
Contributor

neNasko1 commented Aug 1, 2024

Summary

The feature in question is related to the fact that there seems to be no way to examine the (grad, hess) pair from the user facing Python API. This might as well be a documentation issue and I will be happy to contribute if that is the case.

Motivation

This will be useful for examinations in a callback or after a model has finished training - for example computing the out-of-sample feature importances of a model.

Description

I have provided a PR that outlines a minimal implementation that covers the most basic use cases that may exist. I am open to discuss further implementation and non-implementation details.

@neNasko1
Copy link
Contributor Author

neNasko1 commented Aug 5, 2024

I am open to discussions about surrounding details as this is a public-facing API change.

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

No branches or pull requests

2 participants