A case sensitive Error of not finding object 'X' in partykit::ctree when there is not even an object X

Viewed 208

library(party) library(ggparty) fit_ctree<-partykit::ctree(Distance_dich~., + data=t_train, + maxdepth = 5) Error in .ctree_test_internal(x = x, X = X, ix = NULL, Xleft = Xleft, : object 'X' not found

Why am i getting this error if there is not even 'X' in the code?

1 Answers

We had the same problem. Seems related to logical variables in our case. Worked with as.numeric() of the logical vars.

Related