MLCatchUp: Automated Update of Deprecated Machine-Learning APIs in Python - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2021

MLCatchUp: Automated Update of Deprecated Machine-Learning APIs in Python

Stefanus A Haryono
  • Fonction : Auteur
  • PersonId : 1111926
Ferdian Thung
  • Fonction : Auteur
  • PersonId : 1111927
David Lo
  • Fonction : Auteur
  • PersonId : 1111928
Lingxiao Jiang
  • Fonction : Auteur
  • PersonId : 1111929

Résumé

Machine learning (ML) libraries are gaining vast popularity, especially in the Python programming language. Using the latest version of such libraries is recommended to ensure the best performance and security. When migrating to the latest version of a machine learning library, usages of deprecated APIs need to be updated, which is a time-consuming process. In this paper, we propose MLCatchUp, an automated API usage update tool for deprecated APIs of popular ML libraries written in Python. MLCatchUp automatically infers the required transformation to migrate usages of deprecated API through the differences between the deprecated and updated API signatures. MLCatchUp offers a readable transformation rule in the form of a domain specific language (DSL). We evaluate MLCatchUp using a dataset of 267 real-world Python code containing 551 usages of 68 distinct deprecated APIs, where MLCatchUp achieves 90.7% accuracy. A video demonstration of MLCatchUp is available at https://youtu.be/5NjOPNt5iaA.
Fichier principal
Vignette du fichier
ICSME_2021_Tool_Paper_MLCatchUp.pdf (184.81 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03361370 , version 1 (05-10-2021)

Identifiants

Citer

Stefanus A Haryono, Ferdian Thung, David Lo, Julia Lawall, Lingxiao Jiang. MLCatchUp: Automated Update of Deprecated Machine-Learning APIs in Python. ICSME 2021 - 37th IEEE International Conference on Software Maintenance and Evolution, Sep 2021, Luxembourg City / Virtual, Luxembourg. ⟨10.1109/ICSME52107.2021.00061⟩. ⟨hal-03361370⟩
63 Consultations
400 Téléchargements

Altmetric

Partager

More