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
9143003d
Unverified
Commit
9143003d
authored
Jun 08, 2021
by
Weston King-Leatham
Committed by
GitHub
Jun 08, 2021
Browse files
[python-package] change to f-strings in test_plotting.py (#4359)
parent
063e7317
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_plotting.py
tests/python_package_test/test_plotting.py
+1
-1
No files found.
tests/python_package_test/test_plotting.py
View file @
9143003d
...
@@ -89,7 +89,7 @@ def test_plot_split_value_histogram(params, breast_cancer_split, train_data):
...
@@ -89,7 +89,7 @@ def test_plot_split_value_histogram(params, breast_cancer_split, train_data):
title
=
'Histogram for feature @index/name@ @feature@'
,
title
=
'Histogram for feature @index/name@ @feature@'
,
xlabel
=
'x'
,
ylabel
=
'y'
,
color
=
'r'
)
xlabel
=
'x'
,
ylabel
=
'y'
,
color
=
'r'
)
assert
isinstance
(
ax1
,
matplotlib
.
axes
.
Axes
)
assert
isinstance
(
ax1
,
matplotlib
.
axes
.
Axes
)
title
=
'Histogram for feature name {
}'
.
format
(
gbm1
.
booster_
.
feature_name
()[
27
]
)
title
=
f
'Histogram for feature name
{
gbm1
.
booster_
.
feature_name
()[
27
]
}
'
assert
ax1
.
get_title
()
==
title
assert
ax1
.
get_title
()
==
title
assert
ax1
.
get_xlabel
()
==
'x'
assert
ax1
.
get_xlabel
()
==
'x'
assert
ax1
.
get_ylabel
()
==
'y'
assert
ax1
.
get_ylabel
()
==
'y'
...
...
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