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

Ratio for num_neighbors in NeighborLoader / LinkNeighborLoader #9582

Open
bryceForrest opened this issue Aug 7, 2024 · 0 comments
Open

Ratio for num_neighbors in NeighborLoader / LinkNeighborLoader #9582

bryceForrest opened this issue Aug 7, 2024 · 0 comments
Labels

Comments

@bryceForrest
Copy link
Contributor

🚀 The feature, motivation and pitch

I think it might be cool and useful to have the option to pass a float in (0, 1] for num_neighbors. If nodes have have highly varied degrees, a raw count of, say, 5 neighbors may be a substantial amount of information node u and significantly less information for node v. It may be more consistent to sample 0.5 of u's neighbors and 0.5 of v's neighbors.

Alternatives

I actually have a very hard time wrapping my brain around writing my own PyG loaders. Idk if that's because the code is scattered across files or what, but I'm not sure where I would begin to write my own.

Additional context

No response

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

No branches or pull requests

1 participant