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