Skip to content

Put LightGCN in eval mode after training (2025)#975

Merged
mdekstrand merged 1 commit intolenskit:series/2025from
mdekstrand:fix/2025/lightgcn-eval
Jan 6, 2026
Merged

Put LightGCN in eval mode after training (2025)#975
mdekstrand merged 1 commit intolenskit:series/2025from
mdekstrand:fix/2025/lightgcn-eval

Conversation

@mdekstrand
Copy link
Copy Markdown
Member

This adds a model.eval() call to the LightGCN trainer's finalize(), to put the model in eval mode before inference.

This is the 2025.x version of the change.

@mdekstrand mdekstrand added the components LensKit recommendation components label Jan 5, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.95%. Comparing base (73066ec) to head (771c508).
⚠️ Report is 1 commits behind head on series/2025.

Additional details and impacted files
@@             Coverage Diff              @@
##           series/2025     #975   +/-   ##
============================================
  Coverage        88.95%   88.95%           
============================================
  Files              215      215           
  Lines            14961    14961           
============================================
  Hits             13308    13308           
  Misses            1653     1653           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mdekstrand mdekstrand force-pushed the fix/2025/lightgcn-eval branch from e62c4d9 to 771c508 Compare January 6, 2026 19:59
@mdekstrand mdekstrand merged commit 771c508 into lenskit:series/2025 Jan 6, 2026
40 of 44 checks passed
@mdekstrand mdekstrand deleted the fix/2025/lightgcn-eval branch January 6, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

components LensKit recommendation components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant