-
Notifications
You must be signed in to change notification settings - Fork 102
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 NumPy 2.0 (fixes #560) #562
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,5 @@ __pycache__ | |
/python/.idea/ | ||
/tests/python/.idea/ | ||
/.idea/ | ||
/.hypothesis | ||
/lint.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,7 +237,7 @@ def test_lightgbm_sparse_ranking_model(tmpdir): | |
|
||
lgb_model_path = pathlib.Path(tmpdir) / "sparse_ranking_lightgbm.txt" | ||
|
||
dtrain = lgb.Dataset(X, label=y, group=[X.shape[0]]) | ||
dtrain = lgb.Dataset(X, label=y, group=np.array([X.shape[0]], dtype=np.int32)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one is Passing a list for
Passing a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't post enough stacktrace there. To be clear, that is code inside There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
lgb_model = lgb.train(params, dtrain, num_boost_round=1) | ||
lgb_out = lgb_model.predict(X).reshape((-1, 1, 1)) | ||
lgb_model.save_model(lgb_model_path) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format
made these style changes to C++ files automatically when I ran