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
> # Model accuracy with new features
> accuracy.after <- sum((predict(bst, new.dtest) >= 0.5) == agaricus.test$label) / length(agaricus.test$label)
Error in predict.xgb.Booster(bst, new.dtest) :
Feature names stored in `object` and `newdata` are different!
Seemingly the factor variables created by the function create.new.tree.features have different levels.
The text was updated successfully, but these errors were encountered:
JiaxiangBU
added a commit
to JiaxiangBU/xgboost
that referenced
this issue
Apr 3, 2019
xgboost/R-package/demo/predict_leaf_indices.R
Line 49 in 82dca3c
I get this error
Seemingly the factor variables created by the function
create.new.tree.features
have different levels.The text was updated successfully, but these errors were encountered: