arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.07461cs.LGcs.PLcs.SE
收藏

一个将Python程序表示为机器学习图形的库

A Library for Representing Python Programs as Graphs for Machine Learning

Google Research(谷歌研究院);Carnegie Mellon University(卡内基梅隆大学)

David Bieber, Kensen Shi, Petros Maniatis, Charles Sutton, Vincent Hellendoorn, Daniel Johnson, Daniel Tarlow

摘要:

程序的图形表示通常是用于代码研究的机器学习的核心元素。我们介绍了一个开源Python库python_graphs,它应用静态分析来构建适合于训练机器学习模型的Python程序的图表示。我们的库允许构建控制流图、数据流图和组合“程序图”,这些图结合了关于程序的控制流、数据流、语法和词汇信息。我们提出的功能和限制的图书馆,执行一个案例研究,将图书馆数百万的竞争性编程提交,并展示图书馆的效用机器学习研究。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑