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

关于utils/data_loader.py第69行注释的小疑问 #33

Open
bill2766 opened this issue Oct 18, 2023 · 0 comments
Open

关于utils/data_loader.py第69行注释的小疑问 #33

bill2766 opened this issue Oct 18, 2023 · 0 comments

Comments

@bill2766
Copy link

请问针对utils/data_loader.py,第69行的注释# including items + users是否应该改为# including items?因为变量n_entities不应该包括users,只包括items和其他entities。

    n_entities = max(max(triplets[:, 0]), max(triplets[:, 2])) + 1  # including items + users
    n_nodes = n_entities + n_users

->

    n_entities = max(max(triplets[:, 0]), max(triplets[:, 2])) + 1  # including items
    n_nodes = n_entities + n_users
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