twitter / communitynotes

Documentation and source code powering Twitter's Community Notes
https://twitter.github.io/communitynotes
Apache License 2.0
1.48k stars 213 forks source link

Update algorithm, including matrix factorization refactoring #132

Closed jbaxter closed 1 year ago

jbaxter commented 1 year ago

Refactoring -Refactor matrix_factorization.py into its own subfolder (it had gotten extraordinarily large and hard to follow). -Also move much of the state that was passed between functions to be stored on the object in attributes to simplify the code.

Functionality Changes -Add numRatings field to scored_notes.tsv output, which computes the total number of ratings on a note. -Increase coreFlipPct to 0.175 from 0.15 (to allow slightly more flips before triggering a rerun)