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
d1f87352
Unverified
Commit
d1f87352
authored
Dec 15, 2020
by
penolove
Committed by
GitHub
Dec 15, 2020
Browse files
[python] add average precision into higher_better eval (#3649)
parent
b69364e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
d1f87352
...
...
@@ -3292,7 +3292,7 @@ class Booster:
self
.
__name_inner_eval
=
\
[
string_buffers
[
i
].
value
.
decode
(
'utf-8'
)
for
i
in
range
(
self
.
__num_inner_eval
)]
self
.
__higher_better_inner_eval
=
\
[
name
.
startswith
((
'auc'
,
'ndcg@'
,
'map@'
))
for
name
in
self
.
__name_inner_eval
]
[
name
.
startswith
((
'auc'
,
'ndcg@'
,
'map@'
,
'average_precision'
))
for
name
in
self
.
__name_inner_eval
]
def
attr
(
self
,
key
):
"""Get attribute string from the Booster.
...
...
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