Git Product home page Git Product logo

graph_emb's Introduction

graph_emb

Test task for JBR project

The task is to visualize the graph of interactions between contributors to the "React" repository.

Data scraping

Run get_data.ipynb to collect information about contributors. Using Github API with basic authentication we can make up to 5000 requests per hour that is not enough to get all the data, so it will take some time. The folder 'users/' will contain the resulting '.txt' of user's modified files. The folder 'data/' will contain the resulting '.csv' all time contributions count with logins.

Data visualization

In data_visualization.ipynb the data about each user is aggregated into a DataFrame. Next, we can construct a graph, where edges are ('first_contributor', 'second_contributor', intersection of modified files). Now we can move on to visualization. The notebook contain different ways to do this:

  1. The simplest: use bitwise vectors of changed files for every user as their embeddings and visualize graph after TSNE.
  2. Draw graph using networkx methods.
  3. Fit node2vec model to get node embeddings, use TSNE and plot constructed points.

As for me, the second and the third methods are giving more informative plots.

Used libraries

  • numpy==1.18.1
  • pandas==1.0.3
  • matplotlib==3.2.1
  • sklearn==0.23.1
  • networkx==2.5
  • fastnode2vec==0.0.5

graph_emb's People

Contributors

lissrbay 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.