Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
59412f64ad
@ -1,8 +1,8 @@
|
|||||||
XGBoost Examples
|
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:)
|
* If you like to share how you use xgboost to solve your problem, send a pull request:)
|
||||||
|
|
||||||
Features Walkthrough
|
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)
|
[python](guide-python/basic_walkthrough.py)
|
||||||
[R](../R-package/demo/basic_walkthrough.R)
|
[R](../R-package/demo/basic_walkthrough.R)
|
||||||
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/basic_walkthrough.jl)
|
[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)
|
[python](guide-python/custom_objective.py)
|
||||||
[R](../R-package/demo/custom_objective.R)
|
[R](../R-package/demo/custom_objective.R)
|
||||||
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/custom_objective.jl)
|
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/custom_objective.jl)
|
||||||
|
|||||||
@ -437,7 +437,6 @@ class TreeModel {
|
|||||||
<< ",missing=" << nodes[nid].cdefault();
|
<< ",missing=" << nodes[nid].cdefault();
|
||||||
}
|
}
|
||||||
if (with_stats) {
|
if (with_stats) {
|
||||||
fo << ' ';
|
|
||||||
stat(nid).Print(fo, false);
|
stat(nid).Print(fo, false);
|
||||||
}
|
}
|
||||||
fo << '\n';
|
fo << '\n';
|
||||||
@ -460,9 +459,9 @@ struct RTreeNodeStat {
|
|||||||
/*! \brief print information of current stats to fo */
|
/*! \brief print information of current stats to fo */
|
||||||
inline void Print(std::stringstream &fo, bool is_leaf) const {
|
inline void Print(std::stringstream &fo, bool is_leaf) const {
|
||||||
if (!is_leaf) {
|
if (!is_leaf) {
|
||||||
fo << "gain=" << loss_chg << ",cover=" << sum_hess;
|
fo << ",gain=" << loss_chg << ",cover=" << sum_hess;
|
||||||
} else {
|
} else {
|
||||||
fo << "cover=" << sum_hess;
|
fo << ",cover=" << sum_hess;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user