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
Appease linter
  • Loading branch information
Atanas Dimitrov committed Aug 8, 2024
commit 2ab26f395f133ac24a41601b0954819776e87fe6
5 changes: 1 addition & 4 deletions tests/python_package_test/test_engine.py
Original file line number Diff line number Diff line change
@@ -4445,7 +4445,4 @@ def test_objective_function_class(use_weight, test_data, num_boost_round):
y_pred = np.zeros_like(booster.predict(X, raw_score=True))
np.testing.assert_allclose(builtin_loss(y_pred, lgb_train), test_data["custom_objective"](y_pred, lgb_train))

np.testing.assert_allclose(
builtin_convert_outputs(booster_exposed.predict(X)),
booster.predict(X)
)
np.testing.assert_allclose(builtin_convert_outputs(booster_exposed.predict(X)), booster.predict(X))
Loading
Oops, something went wrong.