Giter VIP home page Giter VIP logo

dmitrykazhdan / representing-programs-with-graphs Goto Github PK

View Code? Open in Web Editor NEW
38.0 2.0 9.0 106.45 MB

Re-implementation and extension of the work described in "Learning to Represent Programs with Graphs"

License: MIT License

Python 100.00%
machine-learning graph-neural-networks gnns microsoft microsoft-research microsoft-machine-learning graphs variable-naming ml-programming programming-ml

representing-programs-with-graphs's People

Contributors

dmitrykazhdan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

representing-programs-with-graphs's Issues

Create Counter instead of Set

Looking at the Vocabulary creation code here:

  • You need to get the most frequent (sub) tokens. By converting them into a set you lose count information. Use Counter instead and pass that into the Vocabulary.
  • The current max_size is tiny. (a) Pull it out as a hyperparameter you can change (b) For "real" data, this should be larger. It's reasonable for fast, dry runs.

`node_token_ids` of the wrong size?

The placeholder node_token_ids seems off. The input should probably be of size batch_size x max_num_subtokens instead of batch_size x hidden_size. Essentially, the placeholder should contain the ids of the subtokens within the vocabulary, not their embeddings (you seem to be correctly looking up the embeddings of those ids here whose output should be batch_size x max_num_subtokens x hidden_size).

(we also discussed in person about masking, if I recall. The mask would be a 0/1 matrix of size batch_size x max_num_subtokens if you decide to implement this at some point)

Licence?

Hello @dmitrykazhdan ,

I am a Master student at the HTWG Konstanz University of Applied Sciences in Computer Science.

Currently, I am working on my master thesis, where I am investigating various machine learning methods that deal with the naming of variables and methods.

My idea is to collect the found implementations within a proof of concept and to use them for a specific use case within the development process.

For example in pull request's to support the reviewers.
I want to publish the proof of concept as an open source project on GitHub.

Therefore my question:
Could you add a license to your repo?
May I use your implementation in my proof of concept?

Greetings
Marcel

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.