-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
classif.ranger not working when target variable is not in the last column #986
Comments
Hmm, sometimes it even crashes RGui.exe for me. |
Can you check running it for ranger directly? If this crashes (what I think will happen) I will contact @mnwright but until then I propose the workaround to simply put the target column in the last column via something like data = getTaskData(.task, .subset, target.extra = TRUE)
ranger::ranger(formula = NULL, dependent.variable = tn, data = cbind(data$task, data$target), write.forest = TRUE, ...) |
hi this really seems like a 100% ranger problem. |
Fixed in ranger. |
cool thx. mlr seems to work nicely as a "bug detector" for other packages :) |
use classif.ranger to predict "diabetes" in pid.task (this works)
however, when "diabetes" is not the last but the second last variable in the dataframe
resampling does not work
The text was updated successfully, but these errors were encountered: