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

Add per token and per context frequency to LatentRecord #114

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SrGonao
Copy link
Collaborator

@SrGonao SrGonao commented Apr 2, 2025

I did this so we can do some kind of frequency weighting of the scores of autointerp. At the moment, I haven't changed anything about how the scores are computed. Maybe we can do this in this PR, but currently I'm ok with just having this information stored in a way that can be easily accessed later (you can just iterate the loader and get record.per_token_frequency, or the per_context_frequency).

We can decide to save it with the scores, or recompute it afterwards.

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.

1 participant