remove a redundant sentence, and a word 'and' (#1526)

* fix a typo

* fix a typo and some code format

* Update training.py

* delete redundant sentence
This commit is contained in:
闻波 2016-08-31 13:51:40 -05:00 committed by Tianqi Chen
parent fd7c3b3543
commit 8cdfec71b3

View File

@ -38,8 +38,6 @@ def _train_internal(params, dtrain,
xgb_model = xgb_model.save_raw()
bst = Booster(params, [dtrain] + [d[0] for d in evals], model_file=xgb_model)
nboost = len(bst.get_dump())
else:
bst = Booster(params, [dtrain] + [d[0] for d in evals])
_params = dict(params) if isinstance(params, list) else params
@ -150,7 +148,7 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None,
evals_result: dict
This dictionary stores the evaluation results of all the items in watchlist.
Example: with a watchlist containing [(dtest,'eval'), (dtrain,'train')] and
and a paramater containing ('eval_metric', 'logloss')
a paramater containing ('eval_metric', 'logloss')
Returns: {'train': {'logloss': ['0.48253', '0.35953']},
'eval': {'logloss': ['0.480385', '0.357756']}}
verbose_eval : bool or int