Skip to content
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

xgboost error on predict_bot function #33

Open
noahtolsen opened this issue Aug 3, 2020 · 0 comments
Open

xgboost error on predict_bot function #33

noahtolsen opened this issue Aug 3, 2020 · 0 comments

Comments

@noahtolsen
Copy link

Getting the following error when running the sample code from the ReadMe.

Error in predict.xgb.Booster(predmodel, as.matrix(x[, -(1:3)])) : [15:54:07] amalgamation/../src/learner.cc:506: Check failed: mparam_.num_feature != 0 (0 vs. 0) : 0 feature is supplied. Are you using raw Booster interface? Stack trace: [bt] (0) 1 xgboost.so 0x0000000119225fb0 dmlc::LogMessageFatal::~LogMessageFatal() + 112 [bt] (1) 2 xgboost.so 0x00000001192b3b09 xgboost::LearnerConfiguration::ConfigureNumFeatures() + 265 [bt] (2) 3 xgboost.so 0x00000001192a899b xgboost::LearnerConfiguration::Configure() + 971 [bt] (3) 4 xgboost.so 0x00000001192a9fda xgboost::LearnerImpl::Predict(std::__1::shared_ptr<xgboost::DMatrix>, bool, xgboost::HostDeviceVector<float>*, unsigned int, bool, bool, bool, bool, bool) + 90 [bt] (4) 5 xgboost.so 0x0000000119286d2a XGBoosterPredict + 266 [bt] (5) 6 xgboost.so 0x0000000119223ea9 XGBoosterPredict_R + 121 [bt] (6) 7 libR.dylib

Is this an xgboost bug or something on my end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant