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
bab58d0e
Unverified
Commit
bab58d0e
authored
Jun 07, 2021
by
sayantan sadhu
Committed by
GitHub
Jun 07, 2021
Browse files
[python-package] updated test_consistency.py to use f-strings (#4348)
parent
20e63387
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/python_package_test/test_consistency.py
tests/python_package_test/test_consistency.py
+2
-2
No files found.
tests/python_package_test/test_consistency.py
View file @
bab58d0e
...
...
@@ -32,7 +32,7 @@ class FileLoader:
return
mat
[:,
1
:],
mat
[:,
0
],
filename
def
load_field
(
self
,
suffix
):
return
np
.
loadtxt
(
os
.
path
.
join
(
self
.
directory
,
self
.
prefix
+
suffix
))
return
np
.
loadtxt
(
os
.
path
.
join
(
self
.
directory
,
f
'
{
self
.
prefix
}{
suffix
}
'
))
def
load_cpp_result
(
self
,
result_file
=
'LightGBM_predict_result.txt'
):
return
np
.
loadtxt
(
os
.
path
.
join
(
self
.
directory
,
result_file
))
...
...
@@ -61,7 +61,7 @@ class FileLoader:
assert
a
==
b
,
f
def
path
(
self
,
suffix
):
return
os
.
path
.
join
(
self
.
directory
,
self
.
prefix
+
suffix
)
return
os
.
path
.
join
(
self
.
directory
,
f
'
{
self
.
prefix
}{
suffix
}
'
)
def
test_binary
():
...
...
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