API Usage Recommendation Via Multi-View Heterogeneous Graph Representation Learning

计算机科学 Java 图形 情报检索 理论计算机科学 程序设计语言
作者
Yujia Chen,Cuiyun Gao,Xiaoxue Ren,Yun Peng,Xin Xia,Michael R. Lyu
出处
期刊:IEEE Transactions on Software Engineering [IEEE Computer Society]
卷期号:49 (5): 3289-3304 被引量:17
标识
DOI:10.1109/tse.2023.3252259
摘要

Developers often need to decide which APIs to use for the functions being implemented. With the ever-growing number of APIs and libraries, it becomes increasingly difficult for developers to find appropriate APIs, indicating the necessity of automatic API usage recommendation. Previous studies adopt statistical models or collaborative filtering methods to mine the implicit API usage patterns for recommendation. However, they rely on the occurrence frequencies of APIs for mining usage patterns, thus prone to fail for the low-frequency APIs. Besides, prior studies generally regard the API call interaction graph as homogeneous graph, ignoring the rich information (e.g., edge types) in the structure graph. In this work, we propose a novel method named MEGA for improving the recommendation accuracy especially for the low-frequency APIs. Specifically, besides call interaction graph , MEGA considers another two new heterogeneous graphs: global API co-occurrence graph enriched with the API frequency information and hierarchical structure graph enriched with the project component information. With the three multi-view heterogeneous graphs, MEGA can capture the API usage patterns more accurately. Experiments on three Java benchmark datasets demonstrate that MEGA significantly outperforms the baseline models by at least 19% with respect to the Success Rate@1 metric. Especially, for the low-frequency APIs, MEGA also increases the baselines by at least 55% regarding the Success Rate@1 score.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
诗谙发布了新的文献求助10
刚刚
wj发布了新的文献求助10
刚刚
酷波er应助小吴采纳,获得10
1秒前
2秒前
外向的芙完成签到,获得积分10
2秒前
田様应助橙子爱吃火龙果采纳,获得10
2秒前
诚心山芙完成签到,获得积分10
2秒前
科研通AI6.2应助代卷卷采纳,获得10
3秒前
今后应助wz采纳,获得10
4秒前
4秒前
米娅完成签到,获得积分10
5秒前
bkagyin应助诗谙采纳,获得10
6秒前
李婷婷发布了新的文献求助10
8秒前
8秒前
科研牛马完成签到,获得积分10
9秒前
完美世界应助淡然的诗蕊采纳,获得10
9秒前
李爱国应助1433223采纳,获得10
9秒前
11秒前
agan完成签到,获得积分20
11秒前
11秒前
科研通AI6.1应助xxxxx采纳,获得10
13秒前
14秒前
乔达摩完成签到 ,获得积分0
15秒前
15秒前
16秒前
16秒前
cca发布了新的文献求助10
16秒前
Li完成签到,获得积分10
17秒前
18秒前
香蕉觅云应助清晨采纳,获得10
19秒前
wanci应助科研通管家采纳,获得10
19秒前
Ava应助科研通管家采纳,获得10
19秒前
科目三应助科研通管家采纳,获得10
19秒前
19秒前
星辰大海应助科研通管家采纳,获得10
19秒前
19秒前
小米应助科研通管家采纳,获得10
19秒前
19秒前
小马甲应助科研通管家采纳,获得10
19秒前
19秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Pulse width control of a 3-phase inverter with non sinusoidal phase voltages 777
Signals, Systems, and Signal Processing 610
Research Methods for Applied Linguistics: A Practical Guide 600
Research Methods for Applied Linguistics 500
Chemistry and Physics of Carbon Volume 15 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6406838
求助须知:如何正确求助?哪些是违规求助? 8226025
关于积分的说明 17445104
捐赠科研通 5459574
什么是DOI,文献DOI怎么找? 2884888
邀请新用户注册赠送积分活动 1861311
关于科研通互助平台的介绍 1701779