Skip to content
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

Returning a SparseTensor from preprocessing_fn results in ValueError #202

Open
joelvogt opened this issue Sep 26, 2020 · 0 comments
Open

Comments

@joelvogt
Copy link

Dear TFT team,

I'm trying to transform records of varying lengths without using a predefined length but receive a value error if index[0] is not set. Using tft.sparse_tensor_left_align works but changes the index. Could you please advise me on how to handle optional features correctly? I created a Jupyter notebook to document my issue:
https://drive.google.com/file/d/1O3yhB2mM28ha8GhbQjOFFgqsYhsZhMAr/view?usp=drivesdk
Thank you very much for your help!

Kind regards,

Joël

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants