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

"Relative size" calculation disagrees with paper #1

Open
ISSOtm opened this issue Feb 16, 2022 · 0 comments
Open

"Relative size" calculation disagrees with paper #1

ISSOtm opened this issue Feb 16, 2022 · 0 comments

Comments

@ISSOtm
Copy link

ISSOtm commented Feb 16, 2022

The paper states that the relative size of a tile on a page is ∑[s∈t] (1 ∕ µ_p(s)), but the Python code instead does ∑[s∈t] (1 ∕ (1 + µ_p(s))), which seems more reasonable given that it doesn't divide by 0 if a symbol is nowhere to be found in the page.

return sum(F(1,1+batch.weightBySymbol.get(symbol,0)) for symbol in self)

Nevertheless, the two disagree!

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

No branches or pull requests

1 participant