计算机科学 > 机器学习
[提交于 2022年8月15日]
标题:A Library for Representing Python Programs as Graphs for Machine Learning
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Graph representations of programs are commonly a central element of machine learning for code research. We introduce an open source Python library python_graphs that applies static analysis to construct graph representations of Python programs suitable for training machine learning models. Our library admits the construction of control-flow graphs, data-flow graphs, and composite ``program graphs'' that combine control-flow, data-flow, syntactic, and lexical information about a program. We present the capabilities and limitations of the library, perform a case study applying the library to millions of competitive programming submissions, and showcase the library's utility for machine learning research.
提交历史
来自:David Bieber[v1] 2022年8月15日 星期一 22:36:17 UTC