From 9c8420a4dceb4cc7468b8ec4b67f48e61c5cdfe5 Mon Sep 17 00:00:00 2001 From: Johan Manders Date: Wed, 14 Oct 2015 12:53:42 +0200 Subject: [PATCH] Updated the documentation a bit Will upload some demos for guide-python later. --- python-package/xgboost/training.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-package/xgboost/training.py b/python-package/xgboost/training.py index 50d359b15..4841803b4 100644 --- a/python-package/xgboost/training.py +++ b/python-package/xgboost/training.py @@ -38,7 +38,10 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None, If early stopping occurs, the model will have two additional fields: bst.best_score and bst.best_iteration. evals_result: dict - This dictionary stores the evaluation results of all the items in watchlist + 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') + Returns: {'train': {'logloss': ['0.48253', '0.35953']}, 'eval': {'logloss': ['0.480385', '0.357756']}} verbose_eval : bool If `verbose_eval` then the evaluation metric on the validation set, if given, is printed at each boosting stage.