Skip to content

Instantly share code, notes, and snippets.

@Sh4pe
Created October 23, 2020 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sh4pe/b038a53eebf8e4c32fd0da1467ee7f5d to your computer and use it in GitHub Desktop.
Save Sh4pe/b038a53eebf8e4c32fd0da1467ee7f5d to your computer and use it in GitHub Desktop.
ERROR: LoadError: Call to XGBoost C function XGBoosterPredict failed: [21:13:09] /workspace/srcdir/xgboost/src/c_api/c_api.cc:498: DMatrix/Booster has not been intialized or has already been disposed.
Stack trace:
[bt] (0) /home/XXX/.julia/artifacts/51760a35c00d03a1b2ee373a49af64d08700a64a/lib/libxgboost.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x61) [0x7f7b0fddb2d1]
[bt] (1) /home/XXX/.julia/artifacts/51760a35c00d03a1b2ee373a49af64d08700a64a/lib/libxgboost.so(XGBoosterPredict+0x183) [0x7f7b0fdd4303]
[bt] (2) [0x7f7b1040bfd9]
[bt] (3) [0x7f7b1040c679]
[bt] (4) [0x7f7b1040c79e]
[bt] (5) /opt/julia/julia-1.5.2/bin/../lib/libjulia.so.1(jl_apply_generic+0x6f3) [0x7f7b45a1c163]
[bt] (6) [0x7f7b1040bee1]
[bt] (7) [0x7f7b1040bf5d]
[bt] (8) /opt/julia/julia-1.5.2/bin/../lib/libjulia.so.1(jl_apply_generic+0x6f3) [0x7f7b45a1c163]
Stacktrace:
[1] error(::String, ::String, ::String, ::String) at ./error.jl:42
[2] XGBoosterPredict(::Ptr{Nothing}, ::Ptr{Nothing}, ::Int32, ::UInt32, ::Int32, ::Array{UInt64,1}) at /home/XXX/.julia/packages/XGBoost/fI0vs/src/xgboost_wrapper_h.jl:11
[3] predict(::XGBoost.Booster, ::Array{Float64,2}; output_margin::Bool, ntree_limit::Int64, training::Int64) at /home/XXX/.julia/packages/XGBoost/fI0vs/src/xgboost_lib.jl:243
[4] predict(::XGBoost.Booster, ::Array{Float64,2}) at /home/XXX/.julia/packages/XGBoost/fI0vs/src/xgboost_lib.jl:238
[5] predict(::MLJXGBoostInterface.XGBoostRegressor, ::XGBoost.Booster, ::DataFrame) at /home/XXX/.julia/packages/MLJXGBoostInterface/Bdhak/src/MLJXGBoostInterface.jl:259
[6] predict(::Machine{MLJXGBoostInterface.XGBoostRegressor}, ::DataFrame) at /home/XXX/.julia/packages/MLJBase/Ov46j/src/operations.jl:75
[7] predict(::MLJTuning.DeterministicTunedModel{Grid,MLJXGBoostInterface.XGBoostRegressor}, ::Machine{MLJXGBoostInterface.XGBoostRegressor}, ::DataFrame) at /home/XXX/.julia/packages/MLJTuning/cYqmI/src/tuned_models.jl:614
[8] predict(::Machine{MLJTuning.DeterministicTunedModel{Grid,MLJXGBoostInterface.XGBoostRegressor}}, ::DataFrame) at /home/XXX//.julia/packages/MLJBase/Ov46j/src/operations.jl:75
[9] top-level scope at /tmp/xgboostfail.jl:32
[10] include(::String) at ./client.jl:457
[11] top-level scope at REPL[1]:1
in expression starting at /tmp/xgboostfail.jl:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment