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

Adding RHS transformer #19

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft

Adding RHS transformer #19

wants to merge 23 commits into from

Conversation

andyhuang-kumo
Copy link
Contributor

@andyhuang-kumo andyhuang-kumo commented Aug 12, 2024

Adding RHS transformer to Hybrid GNN repo

  • extracting the relative time requires specific function for each dataset, currently not implemented.
  • clean up and improve rerank_transformer
  • Temporal Encoder now has absolute and fuse as options for temporal encoding, fuse concatenate and normalizes relative hour, day and week
  • rhstransformer supported in benchmark/relbench_link_prediction_benchmark.py
  • RHSTransformer implemented in hybridgnn/nn/models/RHSTransformer.py, attends to IDGNN rhs embeddings only

@andyhuang-kumo andyhuang-kumo requested a review from rusty1s August 12, 2024 18:57
hybridgnn/nn/models/transformer.py Outdated Show resolved Hide resolved
hybridgnn/nn/models/transformer.py Outdated Show resolved Hide resolved
Copy link
Member

@rusty1s rusty1s left a comment

Choose a reason for hiding this comment

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

Looks good besides the sorting logic. Eventually, I don't think we need a full replicate of HybridGNN module but merge it into the existing one. Okay though for testing purposes.

hybridgnn/nn/models/hybrid_rhstransformer.py Outdated Show resolved Hide resolved
hybridgnn/nn/models/transformer.py Outdated Show resolved Hide resolved
hybridgnn/nn/models/transformer.py Outdated Show resolved Hide resolved
hybridgnn/nn/models/transformer.py Outdated Show resolved Hide resolved
hybridgnn/nn/models/transformer.py Show resolved Hide resolved
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.

3 participants