Context-aware API recommendation using tensor factorization

被引:1
|
作者
Zhou, Yu [1 ,3 ]
Chen, Chen [1 ]
Wang, Yongchao [1 ]
Han, Tingting [2 ]
Chen, Taolue [2 ,3 ]
机构
[1] Nanjing Univ Aeronaut & Astronaut, Coll Comp Sci & Technol, Nanjing 211106, Peoples R China
[2] Birkbeck Univ London, London WC1E 7HX, England
[3] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing 210023, Peoples R China
基金
中国国家自然科学基金;
关键词
API recommendation; tensor factorization; context awareness; word embedding; intelligent software development; STRUCTURAL CONTEXT; SEARCH ENGINE;
D O I
10.1007/s11432-021-3529-9
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 context-aware 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 query-API-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.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] Context-aware API recommendation using tensor factorization
    Yu Zhou
    Chen Chen
    Yongchao Wang
    Tingting Han
    Taolue Chen
    [J]. Science China Information Sciences, 2023, 66
  • [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 (02) : 78 - 93
  • [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, Baoqiang
    Li, Zheng
    Zhao, Ruilian
    Guo, Junxia
    [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