diff --git a/regrank/xgboost_regrank_obj.hpp b/regrank/xgboost_regrank_obj.hpp index 71ebec0ab..7246b37e5 100644 --- a/regrank/xgboost_regrank_obj.hpp +++ b/regrank/xgboost_regrank_obj.hpp @@ -16,6 +16,7 @@ namespace xgboost{ public: RegressionObj( int loss_type ){ loss.loss_type = loss_type; + scale_pos_weight = 1.0f; } virtual ~RegressionObj(){} virtual void SetParam(const char *name, const char *val){