Open Access. Powered by Scholars. Published by Universities.®

Computer Engineering Commons

Open Access. Powered by Scholars. Published by Universities.®

Other Computer Engineering

Bard College

Java

Articles 1 - 1 of 1

Full-Text Articles in Computer Engineering

Predicting Imports In Java Code With Graph Neural Networks, Aleksandr Fedchin Jan 2020

Predicting Imports In Java Code With Graph Neural Networks, Aleksandr Fedchin

Senior Projects Spring 2020

Programmers tend to split their code into multiple files or sub-modules. When a program is executed, these sub-modules interact to produce the desired effect. One can, therefore, represent programs with graphs, where each node corresponds to some file and each edge corresponds to some relationship between files, such as two files being located in the same package or one file importing the content of another. This project trains Graph Neural Networks on such graphs to learn to predict future imports in Java programs and shows that Graph Neural Networks outperform various baseline methods by a wide margin.