Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.42 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.42 KB

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.