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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
田田田发布了新的文献求助10
1秒前
1秒前
2022H完成签到,获得积分10
1秒前
3秒前
烟花应助涵泽采纳,获得10
3秒前
lxy发布了新的文献求助10
4秒前
小马甲应助LLLL采纳,获得100
4秒前
5秒前
璇儿完成签到,获得积分10
6秒前
6秒前
杨zhen完成签到,获得积分10
6秒前
所所应助njupt连赛通采纳,获得10
7秒前
hy发布了新的文献求助10
8秒前
8秒前
李健的小迷弟应助breeze采纳,获得10
9秒前
9秒前
iii发布了新的文献求助50
9秒前
11秒前
自觉的万言完成签到 ,获得积分10
12秒前
12秒前
充电宝应助lxy采纳,获得10
14秒前
嘞是举仔完成签到,获得积分10
14秒前
爱听歌契发布了新的文献求助10
14秒前
HiDasiy完成签到 ,获得积分10
14秒前
Orange应助wsc采纳,获得10
15秒前
15秒前
cookie486发布了新的文献求助10
15秒前
wnll完成签到,获得积分10
15秒前
17秒前
动漫大师发布了新的文献求助10
17秒前
17秒前
wnll发布了新的文献求助10
18秒前
iii完成签到,获得积分10
19秒前
hy完成签到,获得积分10
19秒前
jenningseastera应助影子采纳,获得10
19秒前
LLLL发布了新的文献求助100
20秒前
小骆完成签到,获得积分10
20秒前
悦耳代云发布了新的文献求助10
20秒前
21秒前
善良的剑通发布了新的文献求助1000
22秒前
高分求助中
Technologies supporting mass customization of apparel: A pilot project 600
Introduction to Strong Mixing Conditions Volumes 1-3 500
Tip60 complex regulates eggshell formation and oviposition in the white-backed planthopper, providing effective targets for pest control 400
A Field Guide to the Amphibians and Reptiles of Madagascar - Frank Glaw and Miguel Vences - 3rd Edition 400
China Gadabouts: New Frontiers of Humanitarian Nursing, 1941–51 400
The Healthy Socialist Life in Maoist China, 1949–1980 400
Walking a Tightrope: Memories of Wu Jieping, Personal Physician to China's Leaders 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3799006
求助须知:如何正确求助?哪些是违规求助? 3344720
关于积分的说明 10321316
捐赠科研通 3061197
什么是DOI,文献DOI怎么找? 1680067
邀请新用户注册赠送积分活动 806880
科研通“疑难数据库(出版商)”最低求助积分说明 763435