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
85889901
Unverified
Commit
85889901
authored
Feb 03, 2020
by
Nikita Titov
Committed by
GitHub
Feb 03, 2020
Browse files
[python][tests] fixed typo (#2732)
* Update test_engine.py * Update test_sklearn.py
parent
d92d8444
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tests/python_package_test/test_engine.py
tests/python_package_test/test_engine.py
+1
-1
tests/python_package_test/test_sklearn.py
tests/python_package_test/test_sklearn.py
+1
-1
No files found.
tests/python_package_test/test_engine.py
View file @
85889901
...
...
@@ -714,7 +714,7 @@ class TestEngine(unittest.TestCase):
"B"
:
np
.
random
.
permutation
([
1
,
3
]
*
30
),
"C"
:
np
.
random
.
permutation
([
0.1
,
-
0.1
,
0.2
,
0.2
]
*
15
),
"D"
:
np
.
random
.
permutation
([
True
,
False
]
*
30
),
"E"
:
pd
.
Categorical
(
pd
.
np
.
random
.
permutation
([
'z'
,
'y'
]
*
30
),
"E"
:
pd
.
Categorical
(
np
.
random
.
permutation
([
'z'
,
'y'
]
*
30
),
ordered
=
True
)})
np
.
random
.
seed
()
# reset seed
cat_cols_actual
=
[
"A"
,
"B"
,
"C"
,
"D"
]
...
...
tests/python_package_test/test_sklearn.py
View file @
85889901
...
...
@@ -280,7 +280,7 @@ class TestSklearn(unittest.TestCase):
"B"
:
np
.
random
.
permutation
([
1
,
3
]
*
30
),
"C"
:
np
.
random
.
permutation
([
0.1
,
-
0.1
,
0.2
,
0.2
]
*
15
),
"D"
:
np
.
random
.
permutation
([
True
,
False
]
*
30
),
"E"
:
pd
.
Categorical
(
pd
.
np
.
random
.
permutation
([
'z'
,
'y'
]
*
30
),
"E"
:
pd
.
Categorical
(
np
.
random
.
permutation
([
'z'
,
'y'
]
*
30
),
ordered
=
True
)})
np
.
random
.
seed
()
# reset seed
cat_cols_actual
=
[
"A"
,
"B"
,
"C"
,
"D"
]
...
...
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