-
Notifications
You must be signed in to change notification settings - Fork 10
Allow layer_predict()
to pass along ...
#46
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
Comments
Sorry, just getting to this.
A few guesses at what would work:
|
Your comment illustrates exactly how little I know about this. The dots should be "additional named arguments passed on to the predict method". So I think the answers are:
I suspect this means that Bullet 1 should work (or something like it). However I tried some simpler versions, and ... no dice. I want to be able to capture the dots into a list (as with I think that's bullet 1 right? |
Okay, I'll take a look at implementing Bullet 1 and see what might be blocking it. (Terminology note: in this case, we probably won't say that the dots list is "evaluated" or "defused" in I still haven't read through much of Are users directly setting some hyperparameters to be passed to a
Do we want this to work on lm/glmnet-like fit objects, or some sort of things from workflows, recipes, parsnip, ...? Is this supposed to replace |
Sorry, forgot that I was assigned here. I'm confused by recent discussion on Slack; is the goal to be able to record |
On the
frosting
branch, there's alayer_predict()
function. The dots need to be converted to a list, then passed back to thepredict()
call in theslather
method. I tried a few different implementations but couldn't get it to work.layer_predict()
function, the dots must be converted as far as I can tell (not simply passed along). This is because each layer is saved into a list. The current implementation is fine here.dots_list
would then need to be evaluated/defused on line 37. I tried combinations ofrlang
things. I also tried usingdo.call()
with a list of args. I couldn't make either work (and the do.call version would seem to have undesirable copy behaviour).@brookslogan I'm assigning you since you seem to have the most facility with quosure behaviour. I suspect there's a simple fix, but it's beyond me.
The text was updated successfully, but these errors were encountered: