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

You are not considering the condition Whether we are on page which links to 'i' or not. #2

Open
mowhammadrezaa opened this issue Jul 19, 2020 · 1 comment

Comments

@mowhammadrezaa
Copy link

def iterative_sum(corpus, distribution, page):

You are not considering this condition:
For the second condition, we need to consider each possible page i that links to page p.
In the code:

for page in distribution:

you summed up all the pages' distributions. Take a look at my fork of your work. I have it corrected.

@dtemir
Copy link

dtemir commented Nov 18, 2020

I noticed that too. Couldn't find your fork. Were you able to resolve the issue? In my case, I also had to normalize values in the iterative_pagerank .

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

2 participants