GithubHelp home page GithubHelp logo

coryglover / backtracking_pagerank Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 654 KB

This repository contains the code used to generate and analyze data related to backtracking variants of PageRank. Any questions about this code should be directed to the corresponding author(s) of Glover, Cory, et al. "Effects of Backtracking on PageRank." arXiv preprint arXiv:2211.13353 (2022).

Python 2.71% Jupyter Notebook 97.29%

backtracking_pagerank's Introduction

Effects of Backtracking on PageRank

This repository contains the code used to generate and analyze data related to backtracking variants of PageRank. Any questions about this code should be directed to the corresponding author(s) of Glover, Cory, et al. "Effects of Backtracking on PageRank." arXiv preprint arXiv:2211.13353 (2022).

The repository contains three Python Scripts. The first contains functions helpful for analyzing non-backtracking matrices (nb_general.py). The second establishes functions used to calculate PageRank, Non-Backtracking PageRank, and Infinite-PageRank as wells as the implementation of Infinite-PageRank clustering (new_pagerank.py). The third generates PageRank distributions for one graph for various values of $\mu$ (alpha_tools.py). It also generates plots as seen in Figure 1.

There are additionally two jupyter notebooks. The first performs analysis on comparing distributions of PageRank values and the second applies infinite-PageRank clustering to generate stochastic block model networks. Additionally there is a python script to generate figures found in Figure 1.

Investigating Convergence of PageRank With Respect to Backtracking

The python script monotonicity_check.py generates RGG graphs and GNP grphs and checks that PageRank variants converge as backtracking increases. It additionally generates plots as seen in Figure 1.

Comparing Distributions

This notebook generates a GNP and HSCM graph, each with 10^4 nodes. The distributions of standard PageRank and infinite-PageRank and generated and compared visually.

Infinite-PageRank Clustering

This notebook implements infinite-PageRank clustering on American college football from the year 2000 obtained from http://www-personal.umich.edu/~mejn/netdata/. It calculates the associated communities and compares it with the true community labels. It also generates stochastic block models with three clusters. Each cluster connects within the cluster with probability 0.9 and to each other cluster with probability 0.05. The cluster sizes of each community are 28, 30 and 32 respectively. The accuracy of all applications of the clustering algorithm is computed using NMI.

backtracking_pagerank's People

Contributors

coryglover avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.