{"push_id":823726710,"size":2,"distinct_size":1,"ref":"refs/heads/master","head":"8a484e990e6c6e159d0d08b5c90880e24f0aef06","before":"e9edb03eff1aa238dab3d02b491a2f8ed362925c","commits":[{"sha":"1ca737ed55b8d634ada91077c73cc5a348097796","author":{"email":"961383f4aec5da7550a9db4289ac45034e5d6d19@hotmail.com","name":"quansie"},"message":"Update training.py\n\nMade changes to training.py to make sure all eval_metric information get passed to evals_result. Previous version lost and mislabeled data in evals_result when using more than one eval_metric.\r\n\r\nStructure of eval_metric is now:\r\neval_metric[evals][eval_metric] = list of metrics\r\n\r\nExample:\r\n\r\n>>> dtrain = xgb.DMatrix('agaricus.txt.train', silent=True)\r\n>>> dtest = xgb.DMatrix('agaricus.txt.test', silent=True)\r\n\r\n>>> param = [('max_depth', 2), ('objective', 'binary:logistic'), ('bst:eta', 0.01), ('eval_metric', 'logloss'), ('eval_metric', 'error')]\r\n\r\n>>> watchlist  = [(dtest,'eval'), (dtrain,'train')]\r\n>>> num_round = 3\r\n>>> evals_result = {}\r\n>>> bst = xgb.train(param, dtrain, num_round, watchlist, evals_result=evals_result)\r\n\r\n>>> print(evals_result['eval']['logloss'])\r\n>>> print(evals_result)\r\n\r\nPrints:\r\n\r\n['0.684877', '0.676767', '0.668817']\r\n\r\n{'train': {'logloss': ['0.684954', '0.676917', '0.669036'], 'error': ['0.04652', '0.04652', '0.04652']}, 'eval': {'logloss': ['0.684877', '0.676767', '0.668817'], 'error': ['0.042831', '0.042831', '0.042831']}}","distinct":false,"url":"https://api.github.com/repos/quansie/xgboost/commits/1ca737ed55b8d634ada91077c73cc5a348097796"},{"sha":"8a484e990e6c6e159d0d08b5c90880e24f0aef06","author":{"email":"961383f4aec5da7550a9db4289ac45034e5d6d19@hotmail.com","name":"quansie"},"message":"Merge pull request #1 from quansie/quansie-python-training-patch-1\n\ntraining.py - pass all eval_metric information to evals_result","distinct":true,"url":"https://api.github.com/repos/quansie/xgboost/commits/8a484e990e6c6e159d0d08b5c90880e24f0aef06"}]}