ray-project / xgboost_ray

Distributed XGBoost on Ray
Apache License 2.0
139 stars 34 forks source link

set_base_margin for RayDMatrix? #262

Closed graceyangfan closed 1 year ago

graceyangfan commented 1 year ago

Hello,I am trying to moving some xgboost to ray_xgboost,is there any functions like set_base_margin of DMatrix for RayDMatrix? xgboost can set it correctly,in RayDMatrix I try to set the base_margin,I always meet error,when xgboost have 2 classes,I set base_margin as array of [len(train),2],but meet ValueError: Data must be 1-dimensional in _split_dataframe

Yard1 commented 1 year ago

Can you show an end to end example of how you'd do that with xgboost?

graceyangfan commented 1 year ago

I am sorry,close this issue