"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "86530988a08797d77f9cbafcfc7809d9179c2610"
Unverified Commit bab58d0e authored by sayantan sadhu's avatar sayantan sadhu Committed by GitHub
Browse files

[python-package] updated test_consistency.py to use f-strings (#4348)

parent 20e63387
......@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment