一句话:将代码可读性评估建模为排序学习任务,提出基于孪生神经网络的成对排序模型。
代码可读性自动评估是软件工程中较新的挑战。该文提出将代码可读性评估视为 learning-to-rank 任务,设计基于孪生神经网络的成对排序模型:输入一对代码,输出二者的可读性排序。作者在三个公开数据集上评估该模型,取得 83.5% 准确率、86.1% 精确率、81.6% 召回率、83.6% F-measure 和 83.4% AUC。
Automatically assessing code readability is a relatively new challenge that has attracted growing attention from the software engineering community. In this paper, we outline the idea to regard code readability assessment as a learning-to-rank task. Specifically, we design a pairwise ranking model with siamese neural networks, which takes as input a code pair and outputs their readability ranking order. We have evaluated our approach on three publicly available datasets. The result is promising, with an accuracy of 83.5%, a precision of 86.1%, a recall of 81.6%, an F-measure of 83.6% and an AUC of 83.4%.
DOI 原文 ·
@inproceedings{paperbot7211,
title = {Rank Learning-Based Code Readability Assessment with Siamese Neural Networks},
author = {Qing Mi},
booktitle = {ASE},
year = {2022},
doi = {10.1145/3551349.3560440}
}