From ea3bf5d57e7b724ce0b70528d2cff571b2bfc5e8 Mon Sep 17 00:00:00 2001 From: tqchen Date: Tue, 20 May 2014 08:30:19 -0700 Subject: [PATCH] fix bug in classification, scale_pos_weight initialization --- regrank/xgboost_regrank_obj.hpp | 1 + 1 file changed, 1 insertion(+) 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){