-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error for load xgboost:gbtree #53
Comments
Hi! Thanks for your feedback.
|
@randbear , Did you manage with the problem by your self? Thanks! |
I meet the same question; the strange is the size of model file almost increase once... while with vim shell open it, it seems no change. |
@dmitryikh Saw the same error today.
Any ideas why? |
I have the same question.
|
any progress?we have same issue |
I faced the same problem as well. Any progress? |
Hi! Thanks! |
Here is a dummy model dummy_xgb.model.zip you can use. Try loading this model in go
gives me the And it is created from a simple code below.
And here is my python environment: And my golang environment: |
Update: I tried loading |
Hi @dmitryikh, I am wondering if you have got any time to look at this issue? Update (11/16/2020): |
I meet the same problem. The algo colleague give me a xgboost model file, and i load it in go project with leaves, and I debug it into the readHeader with EOF error. I does't understand the problem is caused by what? |
xg_iris.zip |
python build_iris_model.py[13:27:51] WARNING: ../src/learner.cc:1061: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softmax' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior. go run predict_iris_model.gopanic: unexpected EOF goroutine 1 [running]: |
I got an error when I tried to load binary model of xgboost:gbtree, the error message as follow:
panic: unexpected EOF
goroutine 1 [running]:
main.main()
/Users/zhangxiatian/tuotuo/workspace/go/predictor/main.go:13 +0x1ba
Process finished with exit code 2
======================
the code as follow:
package main
import (
"fmt"
"github.com/dmitryikh/leaves"
)
func main() {
// 1. Read model
model, err := leaves.XGEnsembleFromFile("/Users/zhangxiatian/tuotuo/recsys/engin/model/model")
if err != nil {
panic(err)
}
}
The text was updated successfully, but these errors were encountered: