Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b8cc8738
Unverified
Commit
b8cc8738
authored
Jun 29, 2023
by
James Lamb
Committed by
GitHub
Jun 29, 2023
Browse files
[python-package] make Booster and Dataset 'handle' attributes private (fixes #5313) (#5947)
parent
9edea60e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
128 deletions
+129
-128
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+127
-126
tests/python_package_test/test_basic.py
tests/python_package_test/test_basic.py
+2
-2
No files found.
python-package/lightgbm/basic.py
View file @
b8cc8738
This diff is collapsed.
Click to expand it.
tests/python_package_test/test_basic.py
View file @
b8cc8738
...
...
@@ -393,11 +393,11 @@ def test_add_features_does_not_fail_if_initial_dataset_has_zero_informative_feat
dataset_b
=
lgb
.
Dataset
(
arr_b
).
construct
()
original_handle
=
dataset_a
.
handle
.
value
original_handle
=
dataset_a
.
_
handle
.
value
dataset_a
.
add_features_from
(
dataset_b
)
assert
dataset_a
.
num_feature
()
==
6
assert
dataset_a
.
num_data
()
==
100
assert
dataset_a
.
handle
.
value
==
original_handle
assert
dataset_a
.
_
handle
.
value
==
original_handle
def
test_cegb_affects_behavior
(
tmp_path
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment