arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.11614cs.LGcs.CYcs.NE
收藏

ast2vec:利用Python程序的递归神经编码

ast2vec: Utilizing Recursive Neural Encodings of Python Programs

School of Computer Science, The University of Sydney(悉尼大学计算机科学学院);Grok Learning

Benjamin Paaßen, Jessica McBroom, Bryn Jeffries, Irena Koprinska, Kalina Yacef

摘要:

教育数据挖掘涉及数据挖掘技术在学生活动中的应用。然而,在计算机编程的上下文中,许多数据挖掘技术不能被应用,因为它们期望向量形状的输入,而计算机程序具有语法树的形式。在本文中,我们提出了ast2vec,一个神经网络,映射Python语法树向量和回来,从而促进数据挖掘的计算机程序以及数据挖掘结果的解释。Ast2vec已经在近50万个新手程序员的程序上进行了训练,并且被设计为无需重新训练即可在学习任务中应用,这意味着用户可以在不需要任何(额外的)深度学习的情况下应用它。我们展示了ast2vec的一般性在三个设置:首先,我们提供了一个教室大小的数据集上使用ast2vec的示例分析,涉及可视化,学生运动分析,聚类和离群值检测,包括两个新的分析,即进度方差投影和动力系统分析。其次,我们考虑了ast2vec从训练数据和另外两个大规模编程数据集上的向量表示恢复原始语法树的能力。最后,我们评估了一个简单的线性回归的预测能力的ast2vec顶部,获得类似的结果,直接对语法树的技术。我们希望ast2vec能通过使计算机程序的分析更容易、更丰富、更有效来增强教育数据挖掘工具带。

英文摘要:

Educational datamining involves the application of datamining techniques to student activity. However, in the context of computer programming, many datamining techniques can not be applied because they expect vector-shaped input whereas computer programs have the form of syntax trees. In this paper, we present ast2vec, a neural network that maps Python syntax trees to vectors and back, thereby facilitating datamining on computer programs as well as the interpretation of datamining results. Ast2vec has been trained on almost half a million programs of novice programmers and is designed to be applied across learning tasks without re-training, meaning that users can apply it without any need for (additional) deep learning. We demonstrate the generality of ast2vec in three settings: First, we provide example analyses using ast2vec on a classroom-sized dataset, involving visualization, student motion analysis, clustering, and outlier detection, including two novel analyses, namely a progress-variance-projection and a dynamical systems analysis. Second, we consider the ability of ast2vec to recover the original syntax tree from its vector representation on the training data and two further large-scale programming datasets. Finally, we evaluate the predictive capability of a simple linear regression on top of ast2vec, obtaining similar results to techniques that work directly on syntax trees. We hope ast2vec can augment the educational datamining toolbelt by making analyses of computer programs easier, richer, and more efficient.

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

↑