use XGEnsembleFromFile to load the xgb model, model_t, err := leaves.XGEnsembleFromFile("xgb_model.json", true) · Issue #91 · dmitryikh/leaves · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: runtime error: makeslice: len out of range
goroutine 1 [running]:
github.com/dmitryikh/leaves/internal/xgbin.ReadString(0x140000940c0)
go/pkg/mod/github.com/dmitryikh/leaves@v0.0.0-20230708180554-25d19a787328/internal/xgbin/xgbin_io.go:176 +0x68
github.com/dmitryikh/leaves/internal/xgbin.ReadModelHeader(0x140000940c0)
go/pkg/mod/github.com/dmitryikh/leaves@v0.0.0-20230708180554-25d19a787328/internal/xgbin/xgbin_io.go:230 +0x6c
github.com/dmitryikh/leaves.XGEnsembleFromReader(0x140000940c0, 0x1)
go/pkg/mod/github.com/dmitryikh/leaves@v0.0.0-20230708180554-25d19a787328/xgensemble_io.go:140 +0x40
github.com/dmitryikh/leaves.XGEnsembleFromFile({0x1026945ce?, 0x102605838?}, 0x1)
go/pkg/mod/github.com/dmitryikh/leaves@v0.0.0-20230708180554-25d19a787328/xgensemble_io.go:259 +0x138
main.main()
Documents/code/GoAI/main.go:98 +0x40
exit status 2
how can I fix the error
The text was updated successfully, but these errors were encountered: