add col maker

This commit is contained in:
tqchen
2014-03-01 14:00:09 -08:00
parent 1f04893784
commit 394d325078
5 changed files with 315 additions and 60 deletions

View File

@@ -146,7 +146,7 @@ namespace xgboost{
// tail recursion
this->try_prune_leaf( pid, depth - 1 );
}
}
}
// make leaf for current node :)
inline void make_leaf( Task tsk, double sum_grad, double sum_hess, bool compute ){
for( unsigned i = 0; i < tsk.len; i ++ ){