Repository navigation
trust rank implementation and testing - #8165
Conversation
amcandio
left a comment
There was a problem hiding this comment.
Left some comments but I'm not super convinced we should add a new method here. I'd prefer if we update pagerank docs talking about how to generate trustrank. Others might feel differently
rossbar
left a comment
There was a problem hiding this comment.
I'm very much in agreement with @amcandio - this is essentially just making use of the personalization feature. I vastly prefer to call this out in the docs rather than add a new function name - I suspect it's one of the main motivations for the personalization feature in the first place.
My vote would be to add a gallery example and/or update the pagerank docstring to make mention of how the personalization feature can be used to get the "trustrank". IMO a gallery example in the "algorithms" section is ideal as it handles the discoverability issue from a search engine perspective.
|
One reasonably simple gallery example to work from would be examples/algorithms/plot_davis_club.py |
I agree with @dschult , the Davis club example is a good starting point. I also agree that the There is additional information in the contributor guide related to adding gallery examples that may also prove useful! |
| Key Steps: | ||
| 1. Define a set of seed nodes that are considered trustworthy. | ||
| 2. Create a personalization vector where seed nodes are assigned equal trust, | ||
| and non-seed nodes are assigned zero. | ||
| 3. Run the PageRank algorithm with the personalization vector to compute trust scores for all nodes. |
There was a problem hiding this comment.
This doesn't seem to render as a list in the docs (can look by clicking on the CI test results for the documentation artifact circle_ci test. Then navigate to the page you want to look at).
I think it is just a matter of a blank line after the line with the colon and probably an indentation of those 3 items as well.
| References | ||
| ---------- | ||
| .. [1] Gyongyi, Zoltan; Garcia-Molina, Hector (2004). | ||
| "Combating Web Spam with TrustRank" | ||
| http://ilpubs.stanford.edu:8090/770/1/2004-52.pdf | ||
| .. [2] Krishnan, Vijay; Raj, Rashmi | ||
| "Web Spam Detection with Anti-Trust Rank" | ||
| http://i.stanford.edu/~kvijay/krishnan-raj-airweb06.pdf |
There was a problem hiding this comment.
These seem to deal with applications of trustrank rather than the algorithm itself. Personally I'd prefer to delete the references section and instead turn the first instance of TrustRank into a link to the wiki article (see above suggestions for how to do so).
Thanks @rossbar for the feedback and changes! Is there anything else needed to move forward with merging? |
I left a few suggestions above which, if you agree, you can accept using the |
Co-authored-by: Ross Barnowski <[email protected]>
|
Hey @rossbar, I have no objections to your suggestions, please feel free to push them directly |
* trust rank implementation and testing * added references * organizied imports * linting * docs, different weights truted nodes * added trust rank plot example instead of implementation * linting * linting, comment editing * Formatting fixups, seed layout. * Apply suggestions from code review Co-authored-by: Ross Barnowski <[email protected]> * Replace references with wiki link. * wrap doc lines --------- Co-authored-by: Ross Barnowski <[email protected]> Co-authored-by: Dan Schult <[email protected]>
after viewing discussion:
#8163
i have implemented trust rank algorithm using the existing page rank algorithm.