-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
dplyr drop generates bug in predict() #273
Comments
I dont really care about this now. Reopen when it becomes important. |
I just encountered this issue (error from mlr that truth column is not there) when tuning |
@bkomboz Thanks for the report -- could you provide a complete example please? This may be something that we should check in mlr. |
I think this is the same issue that I documented above (and in #253). As I recall @berndbischl argued for not doing anything about it because a |
Yes. But we should make life as simple as possible for users. We should really have an FAQ. |
It also sounds like the problem occurred somewhere during tuning, i.e. deep within mlr and that obscures the true cause of the problem. |
As we dont really use and exploit dplyr in mlr (yet), shouldn't we simply "as.data.frame" the data on task creation, if we are passed a dplyr object? and everything is fine? |
Sounds good to me. |
Thanks for all the responses. @larskotthoff: Here is a minimal example showing the problem:
I think @berndbischl suggestion to do Edit: But it would be nice that if a |
Ok, it looks to me like using I think there's a more general issue here on how to get |
yes, we can / should really use dplyr or datatable internally for speed reasons. but we cannot do this now, maybe this might be mlr 3.0 |
i guess we open a new clean issue for this now? |
Yep. |
dplyr does not drop a one_column
data.frame
which also inherits fromtbl_df
to a vector, which generates a bug inpredict
.see #253 and tidyverse/dplyr#587 as @dickoa mentioned. as @berndbischl noted, it is unclear if this should be handled inside mlr or if it should just be checked for. the near silent failure (only the warning) it generates with the below example is not great though.
The text was updated successfully, but these errors were encountered: