Commit da0eb2bb authored by wxchan's avatar wxchan Committed by Guolin Ke
Browse files

fix cv bug (#269)

parent 52177972
......@@ -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)
......
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