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
I'm getting the following error, and it's not clear how to resolve this:
Error in marginalPrediction(sample.features[, -c("revenue_log_s")], "empcount_s", :
Assertion on 'x' failed: Must be of type 'data.frame', not 'logical'.
I successfully fit a randomForest model, and then call marginalPrediction like so:
mp = marginalPrediction(data[, -c('revenue_log_s')],
"empcount_s",
c(10, nrow(data)),
fit)
I'm not sure what 'x' is referring to, as the data I pass in the first row is a dataframe, and I'm sure that the second argument is supposed to be a character vector, and not a dataframe.
Any thoughts?
The text was updated successfully, but these errors were encountered:
Figured it out. data was both a data.table and a data.frame. This throws an error. Also throws an error with the imp library. Re-cast data as a dataframe and it will work
I'm getting the following error, and it's not clear how to resolve this:
I'm not sure what 'x' is referring to, as the data I pass in the first row is a dataframe, and I'm sure that the second argument is supposed to be a character vector, and not a dataframe.
Any thoughts?
The text was updated successfully, but these errors were encountered: