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

@ -1,6 +1,6 @@
export CC = gcc
export CXX = g++
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp
# specify tensor path
BIN = xgboost

View File

@ -104,7 +104,7 @@ namespace xgboost{
namespace xgboost{
namespace regrank{
IObjFunction* CreateObjFunction( const char *name ){
inline IObjFunction* CreateObjFunction( const char *name ){
if( !strcmp("reg", name ) ) return new RegressionObj();
if( !strcmp("rank:pairwise", name ) ) return new PairwiseRankObj();
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<unsigned> &group_index,
const std::vector< std::pair<int, int> > &pairs, std::vector<float> lambda, int group) = 0;