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

introduce negative sampling ratio #279

Closed
wants to merge 2 commits into from
Closed

Conversation

yiweny
Copy link
Collaborator

@yiweny yiweny commented Nov 24, 2024

No description provided.

Copy link
Collaborator

@rishabh-ranjan rishabh-ranjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please describe this PR?

Also, similar option should also be added to idgnn_link.py for uniformity. Thanks

parser.add_argument("--num_neighbors", type=int, default=128)
parser.add_argument("--temporal_strategy", type=str, default="uniform")
# Use the same seed time across the mini-batch and share the negatives
parser.add_argument("--share_same_time", action="store_true", default=True)
parser.add_argument(
"--no-share_same_time", dest="share_same_time", action="store_false"
)
parser.add_argument(
"--neg-ratio", type=int, default=2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a description or comment for what exactly this option does?

@rishabh-ranjan rishabh-ranjan marked this pull request as draft November 25, 2024 18:08
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

Successfully merging this pull request may close these issues.

2 participants