fix bug in classification, scale_pos_weight initialization

This commit is contained in:
tqchen 2014-05-20 08:30:19 -07:00
parent be2c3d299e
commit cf710bfa59

View File

@ -16,6 +16,7 @@ namespace xgboost{
public: public:
RegressionObj( int loss_type ){ RegressionObj( int loss_type ){
loss.loss_type = loss_type; loss.loss_type = loss_type;
scale_pos_weight = 1.0f;
} }
virtual ~RegressionObj(){} virtual ~RegressionObj(){}
virtual void SetParam(const char *name, const char *val){ virtual void SetParam(const char *name, const char *val){