WebAPIRec:通过个性化排名向软件项目推荐Web API
WebAPIRec: Recommending Web APIs to Software Projects via Personalized Ranking
摘要:
应用程序编程接口(API)为开发人员提供了大量的功能,可以重用,而无需重新发明轮子。根据项目需求确定适当的API对于项目的成功至关重要,因为许多功能可以重用以实现更快的开发。然而,大量的API往往会阻碍开发人员快速找到合适的API的能力。在这种情况下,我们提出了一种新的自动化方法,称为WebAPIRec,它将项目配置文件作为输入,并输出可用于实现项目的{web} API的排名列表。在其核心,WebAPIRec采用了个性化的排名模型,对特定于(个性化)项目的Web API进行排名。基于{web} API使用的历史数据,WebAPIRec学习了一个模型,该模型最大限度地减少了web API的错误排序,即,当使用的{web} API的排名低于未使用的(或尚未使用的)web API时。我们已经在一个数据集上评估了我们的方法,该数据集包括来自ProgrammableWeb的9,883个Web API和4,315个Web应用程序项目,结果令人鼓舞。对于84.0%的项目,WebAPIRec能够成功返回正确的API,这些API用于实现前5名的项目。这比ProgrammableWeb的本机搜索功能提供的建议要好得多。WebAPIRec也优于McMillan等人。的应用搜索引擎和基于流行度的推荐。
英文摘要:
Application programming interfaces (APIs) offer a plethora of functionalities for developers to reuse without reinventing the wheel. Identifying the appropriate APIs given a project requirement is critical for the success of a project, as many functionalities can be reused to achieve faster development. However, the massive number of APIs would often hinder the developers' ability to quickly find the right APIs. In this light, we propose a new, automated approach called WebAPIRec that takes as input a project profile and outputs a ranked list of {web} APIs that can be used to implement the project. At its heart, WebAPIRec employs a personalized ranking model that ranks web APIs specific (personalized) to a project. Based on the historical data of {web} API usages, WebAPIRec learns a model that minimizes the incorrect ordering of web APIs, i.e., when a used {web} API is ranked lower than an unused (or a not-yet-used) web API. We have evaluated our approach on a dataset comprising 9,883 web APIs and 4,315 web application projects from ProgrammableWeb with promising results. For 84.0% of the projects, WebAPIRec is able to successfully return correct APIs that are used to implement the projects in the top-5 positions. This is substantially better than the recommendations provided by ProgrammableWeb's native search functionality. WebAPIRec also outperforms McMillan et al.'s application search engine and popularity-based recommendation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。