From cca67af8d7bc52e4392fd3ef351996225425c4ba Mon Sep 17 00:00:00 2001 From: tqchen Date: Fri, 18 Apr 2014 17:43:44 -0700 Subject: [PATCH] simplify data --- regression/xgboost_reg_data.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/regression/xgboost_reg_data.h b/regression/xgboost_reg_data.h index 317c7603a..905b80cbc 100644 --- a/regression/xgboost_reg_data.h +++ b/regression/xgboost_reg_data.h @@ -21,8 +21,6 @@ namespace xgboost{ /*! \brief data matrix for regression content */ struct DMatrix{ public: - /*! \brief maximum feature dimension */ - unsigned num_feature; /*! \brief feature data content */ booster::FMatrixS data; /*! \brief label of each instance */ @@ -136,19 +134,6 @@ namespace xgboost{ if( savebuffer ) this->SaveBinary( bname, silent ); } } - private: - /*! \brief update num_feature info */ - inline void UpdateInfo( void ){ - this->num_feature = 0; - for( size_t i = 0; i < data.NumRow(); i ++ ){ - booster::FMatrixS::Line sp = data[i]; - for( unsigned j = 0; j < sp.len; j ++ ){ - if( num_feature <= sp[j].findex ){ - num_feature = sp[j].findex + 1; - } - } - } - } }; }; };