-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error when passing optional arguments to cross_validate
#16
Comments
Yep I ran into that exact same issue myself, and reported it here (see workarounds): futureverse/future#156 |
Thanks for reporting this error, Oleg. And, thanks for having already reported this error in I'm honestly not sure of a quick fix off of the top of my head, but can do a bit of digging and report anything back here. Based on the conversation in the issue reported to Also, thanks for pointing out that slip up in the definition of the |
This seems like something of a regression from when we were using |
Ok -- good to know that you encountered this problem in the origami-SL integration as well. Given that its unclear when the error might be resolved on the |
This wasn't encountered in the original SL implementation, it was added today: https://github.com/jeremyrcoyle/SuperLearner/commit/b0b3201befb7c262a8a4220ce45e403903056c14 With examples (and/or tests) of the parallelization options in origami it would have been identified though. |
@ck37 I've been aware of the issue for a while now (see https://app.asana.com/0/270379281729322/369465305300769/f), but haven't had time to look into it in more detail (I'm currently on vacation). There's a commented out test here: https://github.com/jeremyrcoyle/origami/blob/master/tests/testthat/test_future_plan.R#L42 that is disabled because it was failing in some environments, and it didn't seem to make sense to delay our package's release due to an upstream issue we don't yet fully understand/have to wait for Henrik to fix. |
Henrik has fixed the bug: futureverse/future#156 |
Looks like we can move to close this issue once we confirm that the change in It sounds like he's planning a new CRAN release, so we should be ok without having to mess with how dependencies are currently specified for |
Closing since |
The issue with the example |
Minimal example below, taken from vignette. The function
cross_validate
currently errors out whenever I try to pass any optional arguments tocv_fun
. The error appears to be downstream withfuture
package. This is crucial to my functionality, I have to pass optional arguments tocv_fun
. Any advice on work-arounds?In general, I think it might not be the best practice to provide an example with a function
cvlm
that depends on some object (mtcars
) that was defined in the calling environment of this function. This creates quite a bit of confusion and makes it hard to read the code. That's just my opinion though.The text was updated successfully, but these errors were encountered: