Context-aware API recommendation using tensor factorization

被引:0
|
作者
Yu ZHOU [1 ,2 ]
Chen CHEN [1 ]
Yongchao WANG [1 ]
Tingting HAN [3 ]
Taolue CHEN [3 ,2 ]
机构
[1] College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics
[2] State Key Laboratory for Novel Software Technology, Nanjing University
[3] Birkbeck, University of London
基金
中国国家自然科学基金;
关键词
D O I
暂无
中图分类号
TP391.3 [检索机];
学科分类号
081203 ; 0835 ;
摘要
An activity constantly engaged by most programmers in coding is to search for appropriate application programming interfaces(APIs). Contextual information is widely recognized to play a crucial role in effective API recommendation, but it is largely overlooked in practice. In this paper, we propose contextaware API recommendation using tensor factorization(CARTF), a novel API recommendation approach in considering programmers’ working context. To this end, we use tensors to explicitly represent the queryAPI-context triadic relation. When a new query is made, CARTF harnesses word embeddings to retrieve similar user queries, based on which a third-order tensor is constructed. CARTF then applies non-negative tensor factorization to complete missing values in the tensor and the Smith-Waterman algorithm to identify the most matched context. Finally, the ranking of the candidate APIs can be derived based on which API sequences are recommended. Our evaluation confirms the effectiveness of CARTF for class-level and method-level API recommendations, outperforming state-of-the-art baseline approaches against a number of performance metrics, including SuccessRate, Precision, and Recall.
引用
收藏
页码:78 / 93
页数:16
相关论文
共 50 条
  • [1] Context-aware API recommendation using tensor factorization
    Zhou, Yu
    Chen, Chen
    Wang, Yongchao
    Han, Tingting
    Chen, Taolue
    [J]. SCIENCE CHINA-INFORMATION SCIENCES, 2023, 66 (02)
  • [2] Context-aware API recommendation using tensor factorization
    Yu Zhou
    Chen Chen
    Yongchao Wang
    Tingting Han
    Taolue Chen
    [J]. Science China Information Sciences, 2023, 66
  • [3] Adversarial Tensor Factorization for Context-aware Recommendation
    Chen, Huiyuan
    Li, Jing
    [J]. RECSYS 2019: 13TH ACM CONFERENCE ON RECOMMENDER SYSTEMS, 2019, : 363 - 367
  • [4] Context-Aware Point of Interest Recommendation using Tensor Factorization
    Maroulis, Stathis
    Boutsis, Ioannis
    Kalogeraki, Vana
    [J]. 2016 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2016, : 963 - 968
  • [5] Context-aware Point-of-Interest Recommendation Using Tensor Factorization with Social Regularization
    Yao, Lina
    Sheng, Quan Z.
    Qin, Yongrui
    Wang, Xianzhi
    Shemshadi, Ali
    He, Qi
    [J]. SIGIR 2015: PROCEEDINGS OF THE 38TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, 2015, : 1007 - 1010
  • [6] Context-Aware Recommendation-Based Learning Analytics Using Tensor and Coupled Matrix Factorization
    Almutairi, Faisal M.
    Sidiropoulos, Nicholas D.
    Karypis, George
    [J]. IEEE JOURNAL OF SELECTED TOPICS IN SIGNAL PROCESSING, 2017, 11 (05) : 729 - 741
  • [7] Heterogeneous Context-aware Recommendation Algorithm with Semi-supervised Tensor Factorization
    Cai, Guoyong
    Gu, Weidong
    [J]. INTELLIGENT DATA ENGINEERING AND AUTOMATED LEARNING - IDEAL 2017, 2017, 10585 : 232 - 241
  • [8] Context-Aware Based API Recommendation with Diversity
    Lai B.
    Li Z.
    Zhao R.
    Guo J.
    [J]. Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2023, 60 (10): : 2335 - 2347
  • [9] Context-aware Location Recommendations with Tensor Factorization
    Zhu, Xiaoyan
    Hao, Ripei
    [J]. 2016 IEEE/CIC INTERNATIONAL CONFERENCE ON COMMUNICATIONS IN CHINA (ICCC), 2016,
  • [10] Tensor Ring decomposition for context-aware recommendation
    Wang, Wei
    Sun, Guoqiang
    Zhao, Siwen
    Li, Yujun
    Zhao, Jianli
    [J]. EXPERT SYSTEMS WITH APPLICATIONS, 2023, 217