arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2006.10892cs.SE
收藏

优先考虑文档工作:我们能做得更好吗?

Prioritizing documentation effort: Can we do better?

Shiran Liu, Zhaoqiang Guo, Yanhui Li, Hongmin Lu, Lin Chen, Lei Xu, Yuming Zhou, Baowen Xu

摘要:

代码文档对于软件质量保证至关重要,但由于时间或经济压力,代码开发人员通常无法为项目中的所有模块编写文档。最近,一个监督人工神经网络(ANN)的方法被提出来优先重要模块的文档工作。然而,作为监督方法,需要使用标记的训练数据来训练预测模型,这在实践中可能不容易获得。此外,目前还不清楚人工神经网络方法是否是可推广的,因为它只在几个小的数据集上进行评估。在本文中,我们提出了一种无监督的方法,基于PageRank优先级的文档工作。这种方法仅根据项目中模块之间的依赖关系来识别“重要”模块。因此,PageRank方法不需要任何训练数据来构建预测模型。为了评估PageRank方法的有效性,我们使用了六个额外的大型数据集来进行实验,除了从开源项目中收集的相同数据集,如在以前的研究中使用的。实验结果表明,PageRank的方法是优于国家的最先进的人工神经网络的方法,在优先级的重要模块的文档工作。特别是,由于简单和有效性,我们主张PageRank方法应作为一个易于实现的基线在未来的研究文档工作的优先级,任何新的方法应与它进行比较,以证明其有效性。

英文摘要:

Code documentations are essential for software quality assurance, but due to time or economic pressures, code developers are often unable to write documents for all modules in a project. Recently, a supervised artificial neural network (ANN) approach is proposed to prioritize important modules for documentation effort. However, as a supervised approach, there is a need to use labeled training data to train the prediction model, which may not be easy to obtain in practice. Furthermore, it is unclear whether the ANN approach is generalizable, as it is only evaluated on several small data sets. In this paper, we propose an unsupervised approach based on PageRank to prioritize documentation effort. This approach identifies "important" modules only based on the dependence relationships between modules in a project. As a result, the PageRank approach does not need any training data to build the prediction model. In order to evaluate the effectiveness of the PageRank approach, we use six additional large data sets to conduct the experiments in addition to the same data sets collected from open-source projects as used in prior studies. The experimental results show that the PageRank approach is superior to the state-of-the-art ANN approach in prioritizing important modules for documentation effort. In particular, due to the simplicity and effectiveness, we advocate that the PageRank approach should be used as an easy-to-implement baseline in future research on documentation effort prioritization, and any new approach should be compared with it to demonstrate its effectiveness.

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

↑