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

MLP error #1

Closed
SyedTauhidUllahShah opened this issue Aug 31, 2019 · 5 comments
Closed

MLP error #1

SyedTauhidUllahShah opened this issue Aug 31, 2019 · 5 comments

Comments

@SyedTauhidUllahShah
Copy link

It is giving me this error InvalidArgumentError: indices[28,0] = 12928 is not in [0, 12926)
[[{{node item_embedding_3/embedding_lookup}}]].

@enningxie
Copy link
Owner

It is giving me this error InvalidArgumentError: indices[28,0] = 12928 is not in [0, 12926)
[[{{node item_embedding_3/embedding_lookup}}]].

It may be helpful to rescale the input features before the embedding layer.

@SyedTauhidUllahShah
Copy link
Author

It is giving me this error InvalidArgumentError: indices[28,0] = 12928 is not in [0, 12926)
[[{{node item_embedding_3/embedding_lookup}}]].

It may be helpful to rescale the input features before the embedding layer.

I'm a newbie in this area. I would really appreciate if you can please tell me about the exact code to get rid from the error.

@enningxie
Copy link
Owner

It is giving me this error InvalidArgumentError: indices[28,0] = 12928 is not in [0, 12926)
[[{{node item_embedding_3/embedding_lookup}}]].

It may be helpful to rescale the input features before the embedding layer.

I'm a newbie in this area. I would really appreciate if you can please tell me about the exact code to get rid from the error.

Just reindex the user_id to [0, num_users) and the item_id to [0, num_items) before get_train_instances() function, good luck.

@SyedTauhidUllahShah
Copy link
Author

item_id

what does u mean by user_id and item_id? There's nothing like that inside the program.

@enningxie
Copy link
Owner

yeah.

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

No branches or pull requests

2 participants