Characterization and Automatic Updates of Deprecated Machine-Learning API Usages

计算机科学 Python(编程语言) 数字用户线 程序设计语言 人工智能 电信
作者
Stefanus Agus Haryono,Ferdian Thung,David Lo,Julia Lawall,Lingxiao Jiang
标识
DOI:10.1109/icsme52107.2021.00019
摘要

Due to the rise of AI applications, machine learning (ML) libraries, often written in Python, have become far more accessible. ML libraries tend to be updated periodically, which may deprecate existing APIs, making it necessary for application developers to update their usages. In this paper, we build a tool to automate deprecated API usage updates. We first present an empirical study to better understand how updates of deprecated ML API usages in Python can be done. The study involves a dataset of 112 deprecated APIs from Scikit-Learn, TensorFlow, and PyTorch. Guided by the findings of our empirical study, we propose MLCatchUp, a tool to automate the updates of Python deprecated API usages, that automatically infers the API migration transformation through comparison of the deprecated and updated API signatures. These transformations are expressed in a Domain Specific Language (DSL). We evaluate MLCatchUp using a dataset containing 267 files with 551 API usages that we collected from public GitHub repositories. In our dataset, MLCatchUp can detect deprecated API usages with perfect accuracy, and update them correctly for 80.6% of the cases. We further improve the accuracy of MLCatchUp in performing updates by adding a feature that allows it to accept an additional user input that specifies the transformation constraints in the DSL for context-dependent API migration. Using this addition, MLCatchUp can make correct updates for 90.7% of the cases
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
完美世界应助SC采纳,获得10
1秒前
3秒前
Airs发布了新的文献求助10
3秒前
4秒前
mike2012发布了新的文献求助20
5秒前
寻舟者完成签到,获得积分10
6秒前
7秒前
元炫完成签到,获得积分20
8秒前
10秒前
Airs完成签到,获得积分10
10秒前
辛勤珠完成签到,获得积分10
13秒前
稳重岩完成签到,获得积分10
13秒前
无情的牛马完成签到,获得积分10
13秒前
14秒前
18秒前
灵巧土豆完成签到 ,获得积分10
19秒前
一定行完成签到,获得积分10
20秒前
调皮的蓝天完成签到,获得积分10
20秒前
wqqwd给勤恳马里奥的求助进行了留言
22秒前
zhhl2006发布了新的文献求助10
24秒前
yuqinghui98发布了新的文献求助10
26秒前
27秒前
27秒前
无限平凡发布了新的文献求助150
31秒前
恒星发布了新的文献求助10
32秒前
CodeCraft应助czzlancer采纳,获得10
32秒前
36秒前
吴映波完成签到,获得积分10
37秒前
善学以致用应助恒星采纳,获得10
39秒前
41秒前
SW完成签到,获得积分10
42秒前
顺心虔纹发布了新的文献求助10
43秒前
充电宝应助chenxt采纳,获得10
43秒前
温柔梦曼完成签到,获得积分10
45秒前
科研通AI2S应助余刚志采纳,获得10
47秒前
SDM完成签到 ,获得积分10
47秒前
无限平凡完成签到,获得积分10
47秒前
于奕霖发布了新的文献求助10
47秒前
852应助SW采纳,获得10
48秒前
桐桐应助cunzhang采纳,获得10
48秒前
高分求助中
Impact of Mitophagy-Related Genes on the Diagnosis and Development of Esophageal Squamous Cell Carcinoma via Single-Cell RNA-seq Analysis and Machine Learning Algorithms 1600
Exploring Mitochondrial Autophagy Dysregulation in Osteosarcoma: Its Implications for Prognosis and Targeted Therapy 1500
LNG地下式貯槽指針(JGA指-107) 1000
什么是会话分析 888
QMS18Ed2 | process management. 2nd ed 600
LNG as a marine fuel—Safety and Operational Guidelines - Bunkering 560
Clinical Interviewing, 7th ed 400
热门求助领域 (近24小时)
化学 医学 材料科学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 基因 遗传学 物理化学 催化作用 免疫学 细胞生物学 电极
热门帖子
关注 科研通微信公众号,转发送积分 2942212
求助须知:如何正确求助?哪些是违规求助? 2601220
关于积分的说明 7004450
捐赠科研通 2242346
什么是DOI,文献DOI怎么找? 1190099
版权声明 590254
科研通“疑难数据库(出版商)”最低求助积分说明 582657