Separating Lambda MAP and Lambda NDCG

This commit is contained in:
kalenhaha
2014-05-09 14:05:52 +08:00
parent 8b3fc78999
commit 4b6024c563
8 changed files with 209 additions and 214 deletions

View File

@@ -137,7 +137,8 @@ namespace xgboost{
}
/*! \brief return a real number uniform in [0,1) */
inline double RandDouble( void ){
return static_cast<double>( rand_r( &rseed ) ) / (static_cast<double>( RAND_MAX )+1.0);
// return static_cast<double>( rand_r( &rseed ) ) / (static_cast<double>( RAND_MAX )+1.0);
return 0;
}
// random number seed
unsigned rseed;