-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RFC] [Datasets] Extend to_tf
to provide more flexibility
#29030
Comments
Dumb question, but for use case 1, can't the user just convert a dict to a list before passing to the model? For use case 2, isn't |
I don’t think so. If you’re using Keras, you pass the TF Dataset created by
Basically, except the inputs are |
to_tf
to provide more flexibilityto_tf
to provide more flexibility
Hi, I'm a bot from the Ray team :) To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months. If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel. |
Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message. Please feel free to reopen or open a new issue if you'd still like it to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for opening the issue! |
Description
This is a follow-up to #29028
Proposal
Add a parameter
yield_fn
toto_tf
that lets user specify how elements are yielded.Design considerations
What should
yield_fn
accept as input?Option 1:
yield_fn
takes in the data normally yielded byto_tf
Option 2:
yield_fn
takes in all of the data, andfeature_colums
andlabel_columns
are ignored or passed toyield_fn
What should
yield_fn
return as output?Option 1:
yield_fn
returns a tuple of inputs and targetsOption 2:
yield_fn
can return anything, but the user needs to specify the output signatureUse case
Two potential use cases are:
dict
.The text was updated successfully, but these errors were encountered: