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
709d3728
Unverified
Commit
709d3728
authored
Oct 30, 2020
by
nabokovas
Committed by
GitHub
Oct 30, 2020
Browse files
[tests][python] remove excess iterations (#3504)
parent
f4b9519b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
tests/python_package_test/test_basic.py
tests/python_package_test/test_basic.py
+0
-2
No files found.
tests/python_package_test/test_basic.py
View file @
709d3728
...
...
@@ -215,7 +215,6 @@ class TestBasic(unittest.TestCase):
# test that method works for different data types
d1
=
lgb
.
Dataset
(
x_1
,
feature_name
=
names
,
free_raw_data
=
False
).
construct
()
res_feature_names
=
[
name
for
name
in
names
]
idx
=
1
for
idx
,
x_2
in
enumerate
(
xxs
,
2
):
original_type
=
type
(
d1
.
get_data
())
d2
=
lgb
.
Dataset
(
x_2
,
feature_name
=
names
,
free_raw_data
=
False
).
construct
()
...
...
@@ -223,7 +222,6 @@ class TestBasic(unittest.TestCase):
self
.
assertIsInstance
(
d1
.
get_data
(),
original_type
)
self
.
assertTupleEqual
(
d1
.
get_data
().
shape
,
(
n_row
,
n_col
*
idx
))
res_feature_names
+=
[
'D{}_{}'
.
format
(
idx
,
name
)
for
name
in
names
]
idx
+=
1
self
.
assertListEqual
(
d1
.
feature_name
,
res_feature_names
)
def
test_cegb_affects_behavior
(
self
):
...
...
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