add regression data

This commit is contained in:
tqchen
2014-02-10 20:32:23 -08:00
parent 4d1d3712ea
commit 56e4a2ced1
3 changed files with 141 additions and 77 deletions

View File

@@ -78,6 +78,13 @@ namespace xgboost{
inline size_t NumRow( void ) const{
return row_ptr.size() - 1;
}
/*!
* \brief get number of nonzero entries
* \return number of nonzero entries
*/
inline size_t NumEntry( void ) const{
return findex.size();
}
/*! \brief clear the storage */
inline void Clear( void ){
row_ptr.resize( 0 );
@@ -164,6 +171,7 @@ namespace xgboost{
}
}
};
};
};
};
#endif