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
29052c5d
Unverified
Commit
29052c5d
authored
Jul 05, 2021
by
Nikita Titov
Committed by
GitHub
Jul 04, 2021
Browse files
[tests] fix deprecation numpy warning (#4439)
parent
26cc160a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/python_package_test/test_basic.py
tests/python_package_test/test_basic.py
+1
-1
No files found.
tests/python_package_test/test_basic.py
View file @
29052c5d
...
...
@@ -170,7 +170,7 @@ def test_sequence(tmpdir, sample_count, batch_size, include_0_and_nan, num_seq):
# Test for validation set.
# Select some random rows as valid data.
rng
=
np
.
random
.
default_rng
()
# Pass integer to set seed when needed.
valid_idx
=
(
rng
.
random
(
10
)
*
nrow
).
astype
(
np
.
int
)
valid_idx
=
(
rng
.
random
(
10
)
*
nrow
).
astype
(
np
.
int
32
)
valid_data
=
data
[
valid_idx
,
:]
valid_X
=
valid_data
[:,
:
-
1
]
valid_Y
=
valid_data
[:,
-
1
]
...
...
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