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 条
  • [21] Retweet Prediction Using Context-Aware Coupled Matrix-Tensor Factorization
    Jiang, Bo
    Yi, Feng
    Wu, Jianjun
    Lu, Zhigang
    [J]. KNOWLEDGE SCIENCE, ENGINEERING AND MANAGEMENT, KSEM 2019, PT I, 2019, 11775 : 185 - 196
  • [22] MRTensorCube: tensor factorization with data reduction for context-aware recommendations
    Kim, Svetlana
    Lee, Suan
    Kim, Jinho
    Yoon, Yong-Ik
    [J]. JOURNAL OF SUPERCOMPUTING, 2020, 76 (10): : 7847 - 7857
  • [23] Metalearning for Context-aware Filtering: Selection of Tensor Factorization Algorithms
    Cunha, Tiago
    Soares, Carlos
    de Carvalho, Andre C. P. L. F.
    [J]. PROCEEDINGS OF THE ELEVENTH ACM CONFERENCE ON RECOMMENDER SYSTEMS (RECSYS'17), 2017, : 14 - 22
  • [24] Individualized Context-Aware Tensor Factorization for Online Games Predictions
    Jiang, Julie
    Lerman, Kristina
    Ferrara, Emilio
    [J]. 20TH IEEE INTERNATIONAL CONFERENCE ON DATA MINING WORKSHOPS (ICDMW 2020), 2020, : 292 - 299
  • [25] MRTensorCube: tensor factorization with data reduction for context-aware recommendations
    Svetlana Kim
    Suan Lee
    Jinho Kim
    Yong-Ik Yoon
    [J]. The Journal of Supercomputing, 2020, 76 : 7847 - 7857
  • [26] Mining Contextual Movie Similarity with Matrix Factorization for Context-Aware Recommendation
    Shi, Yue
    Larson, Martha
    Hanjalic, Alan
    [J]. ACM TRANSACTIONS ON INTELLIGENT SYSTEMS AND TECHNOLOGY, 2013, 4 (01)
  • [27] A temporal-aware POI recommendation system using context-aware tensor decomposition and weighted HITS
    Ying, Yuankai
    Chen, Ling
    Chen, Gencai
    [J]. NEUROCOMPUTING, 2017, 242 : 195 - 205
  • [28] Architecture of 4-way Tensor Factorization for Context-Aware Recommendations
    Kim, Svetlana
    Yoon, Yong-Ik
    [J]. 2016 INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING (BIGCOMP), 2016, : 18 - 23
  • [29] Time Context-Aware IPTV Program Recommendation based on Tensor Learning
    Yin, Xiaoyan
    Chen, Yanjiao
    Mi, Xiaoqian
    Wang, Hua
    Tang, Zhanyong
    He, Chen
    Fang, Dingyi
    [J]. 2018 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM), 2018,
  • [30] A Context-Aware POI Recommendation
    Thaipisutikul, Tipajin
    Chen, Ying-Nong
    [J]. 2021 IEEE REGION 10 CONFERENCE (TENCON 2021), 2021, : 357 - 362