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

Fix offset in LinearEmbeddingEncoder #455

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Conversation

toenshoff
Copy link
Contributor

This PR fixes an issue in the LinearEmbeddingEncoder class. The forward function does not increment the start_idx variable, so only the first one is used correctly if multiple embedding columns are present.

This probably affects the results in the RelBench paper, so I suggest double-checking those.

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.40%. Comparing base (b28e9a3) to head (f3396d7).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #455      +/-   ##
==========================================
- Coverage   93.58%   93.40%   -0.18%     
==========================================
  Files         126      126              
  Lines        6592     6615      +23     
==========================================
+ Hits         6169     6179      +10     
- Misses        423      436      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akihironitta akihironitta self-assigned this Sep 20, 2024
Copy link
Member

@akihironitta akihironitta left a comment

Choose a reason for hiding this comment

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

Great catch!

I removed the changelog entry as this bug introduced in #432 hasn't appeared in any releases yet.

@akihironitta
Copy link
Member

This probably affects the results in the RelBench paper, so I suggest double-checking those.

Thank you for sharing your suggestion here. The paper uses an older version of PyTorch Frame, so there's no need to double-check the results in the paper.

@akihironitta akihironitta merged commit 63931ba into pyg-team:master Sep 20, 2024
13 of 15 checks passed
@akihironitta
Copy link
Member

cc @yiweny for visibility in case you're running some benchmarks with master.

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

Successfully merging this pull request may close these issues.

2 participants