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

penalties #112

Merged
merged 8 commits into from
Dec 25, 2022
Merged

penalties #112

merged 8 commits into from
Dec 25, 2022

Conversation

johnwarden
Copy link
Contributor

Still just experimenting with what seems to produce good results on the front page
I created this bug while fixing a previous problem with cumulative expected upvotes being incorrect
after a large gap in the data (the story doesn't appear in the crawl for a while then comes back)
… we start calculating penalty

This is because I notice often pages don't make the home page until reaching a score of 4 (3 upvotes)
I didn't realize that the log() function when run through the Go sqlite library github.com/multiprocessio/go-sqlite3-stdlib was the natural log, not log base 10.
When developing and refining the penalties SQL logic I used the sqlite3 commandline tool, where log() was log base 10. Also our code assumes log10 when applying penalties.

Make a corresponding increase in our penalty factor by multiplying the factor that felt correct to me, approx 1.5, by ln(10) (because log10(x)*ln(10)*1.5 = ln(x)*1.5)
@johnwarden johnwarden merged commit 56b3543 into master Dec 25, 2022
@johnwarden johnwarden deleted the penalties branch December 25, 2022 12:29
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