Elvenson / xgboost-go

XGBoost inference with Golang.
MIT License
27 stars 5 forks source link

json: cannot unmarshal object into Go value of type []*xgboost.xgboostJSON #16

Open szmcdull opened 5 months ago

szmcdull commented 5 months ago

How to load DMLC XGBoost model (https://xgboost.readthedocs.io/en/stable/tutorials/saving_model.html)

image

szmcdull commented 5 months ago

Sorry, i then read the doc. I should use dump_model instead of save_model

sedletsky-f5 commented 5 months ago

Sorry, i then read the doc. I should use dump_model instead of save_model

right, it is a typical mistake (happened to me initially) even if there is a doc for this. duality of dump/save for Go/python is the reason...