Repository navigation
feat: judge originator rankings against gold lineages - #46
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #45
What
gnn.lineagesjudges the rankings a reader sees. It readsfields/gold/<field>.yaml: papers, and the earlier works each grew from, as lists of OpenAlex ids, any of which counts. For each paper it ranks the ancestry with the learned scorer, the same walk with equal weights, and every baseline ingraph.score. It reports:It writes
lineages.jsonbeside the snapshot.originators.flowis the damped walk split out oflearned_flow, so the equal-weight ablation runs the same walk.learned_flow's behaviour is unchanged.The gold set is not in this PR. The draft is being verified and will land on its own.
Why
Everything measured so far is the link-prediction proxy. On the draft gold set (18 papers, 94 originators) and the served snapshot:
Coverage is 90/94, and the learned top 10 overlaps 96% across three seeds. The learned ranking leads, and the model's weights are worth +0.05 recall and +0.09 nDCG over the same walk with equal weights.
path_weightranks 1980s foundations first, the failure time decay exists to prevent. These numbers are provisional until the gold set is verified.Verify
uv run pytest tests/test_lineages.py tests/test_originators.py uv run python -m gnn.lineages --field gnn --gold path/to/gold.yaml # about 3 minutesGenerated with Claude Code