From 79731f48b6f86dbd47c7c9958a637f99ded60593 Mon Sep 17 00:00:00 2001 From: Martial Hue Date: Tue, 30 Dec 2014 17:50:24 +0100 Subject: [PATCH 1/2] Fixed minor typos. --- demo/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/README.md b/demo/README.md index 1c6797304..c1f9a210c 100644 --- a/demo/README.md +++ b/demo/README.md @@ -1,8 +1,8 @@ XGBoost Examples ==== -This folder contains the all example codes using xgboost. +This folder contains all the code examples using xgboost. -* Contribution of exampls, benchmarks is more than welcomed! +* Contribution of examples, benchmarks is more than welcome! * If you like to share how you use xgboost to solve your problem, send a pull request:) Features Walkthrough @@ -12,7 +12,7 @@ This is a list of short codes introducing different functionalities of xgboost a [python](guide-python/basic_walkthrough.py) [R](../R-package/demo/basic_walkthrough.R) [Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/basic_walkthrough.jl) -* Cutomize loss function, and evaluation metric +* Customize loss function, and evaluation metric [python](guide-python/custom_objective.py) [R](../R-package/demo/custom_objective.R) [Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/custom_objective.jl) From 2925236fab537fd41074f0c90aa1968bcf8706d0 Mon Sep 17 00:00:00 2001 From: tqchen Date: Sun, 4 Jan 2015 02:35:24 -0800 Subject: [PATCH 2/2] change dump stats --- src/tree/model.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tree/model.h b/src/tree/model.h index 8049a1608..aa9ad2794 100644 --- a/src/tree/model.h +++ b/src/tree/model.h @@ -437,7 +437,6 @@ class TreeModel { << ",missing=" << nodes[nid].cdefault(); } if (with_stats) { - fo << ' '; stat(nid).Print(fo, false); } fo << '\n'; @@ -460,9 +459,9 @@ struct RTreeNodeStat { /*! \brief print information of current stats to fo */ inline void Print(std::stringstream &fo, bool is_leaf) const { if (!is_leaf) { - fo << "gain=" << loss_chg << ",cover=" << sum_hess; + fo << ",gain=" << loss_chg << ",cover=" << sum_hess; } else { - fo << "cover=" << sum_hess; + fo << ",cover=" << sum_hess; } } };