fix bug in classification, scale_pos_weight initialization
This commit is contained in:
parent
f4dedc4d2d
commit
ea3bf5d57e
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user