From 17559a90f91020a5171b566b25b1ec85fa7ecd01 Mon Sep 17 00:00:00 2001 From: tqchen Date: Fri, 18 Apr 2014 18:18:19 -0700 Subject: [PATCH] expose fmatrixs --- booster/xgboost_data.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/booster/xgboost_data.h b/booster/xgboost_data.h index bdc04478a..c3a868ff1 100644 --- a/booster/xgboost_data.h +++ b/booster/xgboost_data.h @@ -228,8 +228,8 @@ namespace xgboost{ * \return the row id added line */ inline size_t AddRow(const std::vector &findex, - const std::vector &fvalue, - unsigned fstart = 0, unsigned fend = UINT_MAX){ + const std::vector &fvalue, + unsigned fstart = 0, unsigned fend = UINT_MAX){ utils::Assert(findex.size() == fvalue.size()); unsigned cnt = 0; for (size_t i = 0; i < findex.size(); i++){ @@ -378,7 +378,7 @@ namespace xgboost{ utils::Assert(fi.Read(&data[0], data.size() * sizeof(REntry)), "Load FMatrixS"); } } - protected: + public: /*! \brief row pointer of CSR sparse storage */ std::vector row_ptr_; /*! \brief data in the row */