mkearney / tweetbotornot

🤖 R package for detecting Twitter bots via machine learning
https://tweetbotornot.mikewk.com
Other
388 stars 137 forks source link

xgboost error on predict_bot function #33

Open noahtolsen opened 4 years ago

noahtolsen commented 4 years ago

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?