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

dividing by len(sources[idx]) #19

Open
carloalbertobono opened this issue Sep 10, 2024 · 0 comments
Open

dividing by len(sources[idx]) #19

carloalbertobono opened this issue Sep 10, 2024 · 0 comments

Comments

@carloalbertobono
Copy link

Hello,

I am really fascinated by the concept, and trying to apply it in emergency scenarios (social media).

I can't understand one detail of the implementation (377 in Dshap.py):

marginal_contribs[sources[idx]] /= len(sources[idx])

How dividing by the length of an index is beneficial?
Was it meant to support multiple indexes and then the implementation changed?

Sorry if I am missing something obvious

Thanks for the work!

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