change input data structure

This commit is contained in:
tqchen
2014-02-26 11:51:58 -08:00
parent 6fa5c30777
commit 9b09cd3d49
9 changed files with 204 additions and 129 deletions

View File

@@ -16,7 +16,9 @@
namespace xgboost{
/*! \brief namespace for boosters */
namespace booster{
/*! \brief interface of a gradient boosting learner */
/*!
* \brief interface of a gradient boosting learner
*/
class IBooster{
public:
// interface for model setting and loading
@@ -61,7 +63,7 @@ namespace xgboost{
*/
virtual void DoBoost( std::vector<float> &grad,
std::vector<float> &hess,
const FMatrixS::Image &feats,
const FMatrixS &feats,
const std::vector<unsigned> &root_index ) = 0;
/*!
* \brief predict values for given sparse feature vector