finish mushroom

This commit is contained in:
tqchen
2014-02-24 23:06:57 -08:00
parent 9d6ef11eb5
commit c4949c0937
8 changed files with 88 additions and 3 deletions

View File

@@ -169,6 +169,16 @@ namespace xgboost{
this->ConfigBooster( this->boosters[i] );
}
}
/*!
* \brief DumpModel
* \param fo text file
*/
inline void DumpModel( FILE *fo ){
for( size_t i = 0; i < boosters.size(); i ++ ){
fprintf( fo, "booster[%d]\n", (int)i );
boosters[i]->DumpModel( fo );
}
}
public:
/*!
* \brief do gradient boost training for one step, using the information given