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

[python-package] Expose ObjectiveFunction class #6586

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update docstring
  • Loading branch information
Atanas Dimitrov committed Sep 3, 2024
commit d2488c5e6f29a1bfcc7abd48c895681825fa5462
6 changes: 4 additions & 2 deletions python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
@@ -5288,8 +5288,10 @@ class ObjectiveFunction:
ObjectiveFunction in LightGBM.

This class exposes the builtin objective functions for evaluating gradients and hessians
on external datasets. LightGBM does not use this wrapper during its training as it is
using the underlying C++ class.
on external datasets. This is useful for examining the state of the training(for example in a callback)
in a generic way.

Note: LightGBM does not use this wrapper during its training as it is using the underlying C++ class.
"""

def __init__(self, name: str, params: Dict[str, Any]):
Loading
Oops, something went wrong.