From 604568b51232bc1fdcbeb349e919ab236fe63916 Mon Sep 17 00:00:00 2001 From: tqchen Date: Fri, 9 May 2014 20:39:15 -0700 Subject: [PATCH] simple chgs --- Makefile | 2 +- regrank/xgboost_regrank_obj.h | 2 +- regrank/xgboost_regrank_obj.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f23ce1085..75a38ae6c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/regrank/xgboost_regrank_obj.h b/regrank/xgboost_regrank_obj.h index b6f081fe9..f82d0b7a3 100644 --- a/regrank/xgboost_regrank_obj.h +++ b/regrank/xgboost_regrank_obj.h @@ -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(); diff --git a/regrank/xgboost_regrank_obj.hpp b/regrank/xgboost_regrank_obj.hpp index 8b31d9dc9..6d0337bcc 100644 --- a/regrank/xgboost_regrank_obj.hpp +++ b/regrank/xgboost_regrank_obj.hpp @@ -339,7 +339,7 @@ namespace xgboost{ } - virtual inline void GetLambda(const std::vector &preds, + virtual void GetLambda(const std::vector &preds, const std::vector &labels, const std::vector &group_index, const std::vector< std::pair > &pairs, std::vector lambda, int group) = 0;