Skip to content

Link Prediction with Supervised Random Walks on Github Data

Notifications You must be signed in to change notification settings

snip2D/Link_prediction

 
 

Repository files navigation

Link Prediction with Supervised Random Walks on Github Data

This is the implementation of Supervised Random Walks from course project in Stanford's CS224W Social and Information Network Analysis. The project report is here.

Supervised Random Walks Realization

supervisedRWfunc.py contains the functions for training a Supervised Random Walks model. The power-iterative solvers for PageRank and the gradient of PageRank are implemented in this library as separate functions. The L-BFGS-B optimizer from Scipy is called to solve the optimization problem in training process.

Link Prediction of Repository Graph

gitRepoTrain.py implements link prediction on repository graph by training model with Supervised Random Walks. The prediction performance comparing to Unweighted random walk is written into a .json file.

Repository Recommendation to Users

userRepoRecom.py recommends repository to users by Personalized PageRank. The comparison between Supervised Random Walks based and Unweighted random walk based repository recommendation is plotted in the end.

About

Link Prediction with Supervised Random Walks on Github Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%