Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jdonaldson
on March 7, 2023
|
parent
|
context
|
favorite
| on:
Launch HN: DAGWorks – ML platform for data science...
Can this be set up to yield data from individual functions instead of simply returning it?
elijahbenizzy
on March 7, 2023
[–]
Thanks for the question! Clarification -- by "yield" do you mean "return a single function's result" or "use a function that's a generator"?
In the former case, yes, it's pretty easy:
driver.execute(final_vars=["my_func_1", "my_func_2"])
will just give out the specific ones you want. In the latter case, it's a little trickier but doable -- we were just going over this with a user recently actually!
https://github.com/DAGWorks-Inc/hamilton/issues/90
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: