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 条
  • [41] A Context-Aware Recommendation System Using Smartphone Sensors
    Zou, Xueyang
    Gonzales, Mariel
    Saeedi, Sara
    [J]. 7TH IEEE ANNUAL INFORMATION TECHNOLOGY, ELECTRONICS & MOBILE COMMUNICATION CONFERENCE IEEE IEMCON-2016, 2016,
  • [42] Factorization models for context-aware recommendations
    Hidasi, Balazs
    [J]. INFOCOMMUNICATIONS JOURNAL, 2014, 6 (04): : 27 - 34
  • [43] Quantum context-aware recommendation systems based on tensor singular value decomposition
    Wang, Xiaoqiang
    Gu, Lejia
    Lee, Heung-wing
    Zhang, Guofeng
    [J]. QUANTUM INFORMATION PROCESSING, 2021, 20 (05)
  • [44] Quantum context-aware recommendation systems based on tensor singular value decomposition
    Xiaoqiang Wang
    Lejia Gu
    Heung-wing Lee
    Guofeng Zhang
    [J]. Quantum Information Processing, 2021, 20
  • [45] TrustTF: A tensor factorization model using user trust and implicit feedback for context-aware recommender systems
    Zhao, Jianli
    Wang, Wei
    Zhang, Zipei
    Sun, Qiuxia
    Huo, Huan
    Qu, Lijun
    Zheng, Shidong
    [J]. KNOWLEDGE-BASED SYSTEMS, 2020, 209
  • [46] Learning Context-Aware Outfit Recommendation
    Abugabah, Ahed
    Cheng, Xiaochun
    Wang, Jianfeng
    [J]. SYMMETRY-BASEL, 2020, 12 (06):
  • [47] Towards Context-Aware Task Recommendation
    Vo, Chuong Cong
    Torabi, Torab
    Loke, Seng W.
    [J]. JCPC: 2009 JOINT CONFERENCE ON PERVASIVE COMPUTING, 2009, : 289 - 292
  • [48] Context-aware Academic Collaborator Recommendation
    Liu, Zheng
    Xie, Xing
    Chen, Lei
    [J]. KDD'18: PROCEEDINGS OF THE 24TH ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY & DATA MINING, 2018, : 1870 - 1879
  • [49] Mining Mood-specific Movie Similarity with Matrix Factorization for Context-aware Recommendation
    Shi, Yue
    Larson, Martha
    Hanjalic, Alan
    [J]. PROCEEDINGS OF THE RECSYS'2010 ACM CHALLENGE ON CONTEXT-AWARE MOVIE RECOMMENDATION (CAMRA2010), 2010, : 34 - 40
  • [50] Framework for context-aware service recommendation
    Liu, Dong
    Meng, Xiang Wu
    Chen, Jun Liang
    [J]. 10TH INTERNATIONAL CONFERENCE ON ADVANCED COMMUNICATION TECHNOLOGY, VOLS I-III: INNOVATIONS TOWARD FUTURE NETWORKS AND SERVICES, 2008, : 2131 - 2134