simple chgs

This commit is contained in:
tqchen 2014-05-09 20:39:15 -07:00
parent f7b2281510
commit 604568b512
3 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ namespace xgboost{
namespace xgboost{ namespace xgboost{
namespace regrank{ namespace regrank{
IObjFunction* CreateObjFunction( const char *name ){ inline IObjFunction* CreateObjFunction( const char *name ){
if( !strcmp("reg", name ) ) return new RegressionObj(); if( !strcmp("reg", name ) ) return new RegressionObj();
if( !strcmp("rank:pairwise", name ) ) return new PairwiseRankObj(); if( !strcmp("rank:pairwise", name ) ) return new PairwiseRankObj();
if( !strcmp("rank:softmax", name ) ) return new SoftmaxRankObj(); if( !strcmp("rank:softmax", name ) ) return new SoftmaxRankObj();

View File

@ -339,7 +339,7 @@ namespace xgboost{
} }
virtual inline void GetLambda(const std::vector<float> &preds, virtual void GetLambda(const std::vector<float> &preds,
const std::vector<float> &labels, const std::vector<float> &labels,
const std::vector<unsigned> &group_index, const std::vector<unsigned> &group_index,
const std::vector< std::pair<int, int> > &pairs, std::vector<float> lambda, int group) = 0; const std::vector< std::pair<int, int> > &pairs, std::vector<float> lambda, int group) = 0;