arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2101.10087cs.CYcs.LG
收藏

自动程序结构分类

Automating Program Structure Classification

Stanford University(斯坦福大学)

Will Crichton, Georgia Gabriela Sampaio, Pat Hanrahan

摘要:

当学生编写程序时,他们的程序结构提供了对他们学习过程的洞察。然而,手工分析程序结构是耗时的,教师需要更好的工具,以计算机辅助探索学生的解决方案。作为面向教育的程序分析工具包的第一步,我们展示了监督机器学习方法如何自动将学生程序分类为一组预定的高级结构。我们评估两个模型分类学生解决方案的降雨问题:最近邻分类器使用语法树编辑距离和递归神经网络。我们证明,这些模型在108个程序上训练时可以达到91%的分类准确率。我们进一步探讨了每个模型的通用性,权衡和失败的情况。

英文摘要:

When students write programs, their program structure provides insight into their learning process. However, analyzing program structure by hand is time-consuming, and teachers need better tools for computer-assisted exploration of student solutions. As a first step towards an education-oriented program analysis toolkit, we show how supervised machine learning methods can automatically classify student programs into a predetermined set of high-level structures. We evaluate two models on classifying student solutions to the Rainfall problem: a nearest-neighbors classifier using syntax tree edit distance and a recurrent neural network. We demonstrate that these models can achieve 91% classification accuracy when trained on 108 programs. We further explore the generality, trade-offs, and failure cases of each model.

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

↑