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
da0eb2bb
Commit
da0eb2bb
authored
Jan 27, 2017
by
wxchan
Committed by
Guolin Ke
Jan 27, 2017
Browse files
fix cv bug (#269)
parent
52177972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+1
-1
No files found.
python-package/lightgbm/engine.py
View file @
da0eb2bb
...
...
@@ -385,7 +385,7 @@ def cv(params, train_set, num_boost_round=10, nfold=5, stratified=False,
begin_iteration
=
0
,
end_iteration
=
num_boost_round
,
evaluation_result_list
=
None
))
cvfolds
.
update
(
fobj
)
cvfolds
.
update
(
fobj
=
fobj
)
res
=
_agg_cv_result
(
cvfolds
.
eval_valid
(
feval
))
for
_
,
key
,
mean
,
_
,
std
in
res
:
results
[
key
+
'-mean'
].
append
(
mean
)
...
...
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