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

what is n_node #2

Open
tiamo405 opened this issue May 8, 2024 · 0 comments
Open

what is n_node #2

tiamo405 opened this issue May 8, 2024 · 0 comments

Comments

@tiamo405
Copy link

tiamo405 commented May 8, 2024

i have data customer same form but when train, code error :
File "train.py", line 95, in main hit, mrr = train_test(model, train_data, test_data) File "/mnt/nvme0n1/phuongnam/SBR/model.py", line 185, in train_test targets, scores = forward(model, i, train_data) File "/mnt/nvme0n1/phuongnam/SBR/model.py", line 167, in forward hidden = model(items, A) File "/mnt/nvme0n1/miniconda3/envs/namtp/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/mnt/nvme0n1/phuongnam/SBR/model.py", line 130, in forward hidden = self.embedding(inputs) File "/mnt/nvme0n1/miniconda3/envs/namtp/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/mnt/nvme0n1/miniconda3/envs/namtp/lib/python3.8/site-packages/torch/nn/modules/sparse.py", line 156, in forward return F.embedding( File "/mnt/nvme0n1/miniconda3/envs/namtp/lib/python3.8/site-packages/torch/nn/functional.py", line 1916, in embedding return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse) IndexError: index out of range in self
How can I choose n_node correctly?

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

1 participant