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

数据过滤在开源软件排名与选择中的作用

The Role of Data Filtering in Open Source Software Ranking and Selection

Addi Malviya-Thakur, Audris Mockus

AI总结:

本文通过对GitHub十万余仓库的回归分析表明,按作者数等流行度相关标准过滤项目会显著扭曲特征与星标数之间的关系,甚至反转相关性,因此主张使用完整数据集或分层随机抽样。

摘要:

面对超过1亿个开源项目,大多数实证研究都会选择一个子集。顶级会议和期刊中的多数研究论文依据某种流行度指标对项目进行过滤,并明确或隐含地主张:不受欢迎的项目不值得关注,甚至可能不代表“真正的”软件项目,或者较不受欢迎的项目不值得研究。然而,如果且恰恰因为所寻求的响应或预测与过滤标准存在任何关联,这种过滤就可能对研究结果产生巨大影响。我们举例说明这种做法对研究结果的影响:过滤 GitHub 上列出的项目会如何影响对其流行度的评估。我们随机抽样了超过100,000个代码仓库,并使用多元回归,根据提交次数、项目持续时间、作者数量和核心开发者数量,对星标数量(流行度的代理指标)进行建模。将使用完整数据集的对照组与过滤后模型(拥有十名或更多作者的项目)进行比较,我们发现,尽管代码仓库的某些特征能够一致地预测流行度,但过滤过程显著改变了这些特征与响应之间的关系。提交次数在对照样本中与流行度呈正相关,但在过滤后样本中呈负相关。这些发现凸显了数据过滤可能引入的偏差,并强调在挖掘软件仓库的实证研究中必须谨慎进行样本选择。我们建议实证研究要么分析诸如 World of Code 之类的完整数据集,要么从完整数据集中采用分层随机抽样,以确保过滤不会使结果产生偏差。

英文摘要:

Faced with over 100M open source projects most empirical investigations select a subset. Most research papers in leading venues investigated filtering projects by some measure of popularity with explicit or implicit arguments that unpopular projects are not of interest, may not even represent "real" software projects, or that less popular projects are not worthy of study. However, such filtering may have enormous effects on the results of the studies if and precisely because the sought-out response or prediction is in any way related to the filtering criteria. We exemplify the impact of this practice on research outcomes: how filtering of projects listed on GitHub affects the assessment of their popularity. We randomly sample over 100,000 repositories and use multiple regression to model the number of stars (a proxy for popularity) based on the number of commits, the duration of the project, the number of authors, and the number of core developers. Comparing control with the entire dataset with a filtered model projects having ten or more authors we find that while certain characteristics of the repository consistently predict popularity, the filtering process significantly alters the relation ships between these characteristics and the response. The number of commits exhibited a positive correlation with popularity in the control sample but showed a negative correlation in the filtered sample. These findings highlight the potential biases introduced by data filtering and emphasize the need for careful sample selection in empirical research of mining software repositories. We recommend that empirical work should either analyze complete datasets such as World of Code, or employ stratified random sampling from a complete dataset to ensure that filtering is not biasing the results.

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

↑