arrow
Return

CORAL: COde RepresentAtion learning with weakly-supervised transformers for analyzing data analysis

delete2022-03-18
delete6
delete
OA
AI
G
Ge Zhang
M
Mike A. Merrill
刘
刘洋 (Yang Liu)
J
Jeffrey Heer
T
Tim Althoff *
DOI:10.1140/epjds/s13688-022-00327-9delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Large scale analysis of source code, and in particular scientific source code, holds the promise of better understanding the data science process, identifying analytical best practices, and providing insights to the builders of scientific toolkits. However, large corpora have remained unanalyzed in depth, as descriptive labels are absent and require expert domain knowledge to generate. We propose a novel weakly supervised transformer-based architecture for computing joint representations of code from both abstract syntax trees and surrounding natural language comments. We then evaluate the model on a new classification task for labeling computational notebook cells as stages in the data analysis process from data import to wrangling, exploration, modeling, and evaluation. We show that our model, leveraging only easily-available weak supervision, achieves a 38% increase in accuracy over expert-supplied heuristics and outperforms a suite of baselines. Our model enables us to examine a set of 118,000 Jupyter Notebooks to uncover common data analysis patterns. Focusing on notebooks with relationships to academic articles, we conduct the largest study of scientific code to date and find that notebooks which devote an higher fraction of code to the typically labor-intensive process of wrangling data in expectation exhibit decreased citation counts for corresponding papers. We also show significant differences between academic and non-academic notebooks, including that academic notebooks devote substantially more code to wrangling and exploring data, and less on modeling.
Keywords:
Data science
Meta science
Representation learning

Journal

EPJ Data Science cover
EPJ Data Science
IF:
2.5
Papers:
704
Citations:
1.6K

Organization

No organization information available
Cited Papers

Cited Papers

Mental illness in migrants: diagnostic and therapeutic challenges
err2014-06-13
err0
PREAI
errLarkin Feeney; Brendan D Kelly; Peter Whitty; Eadbhard O'Callaghan
errShare
errSave
Characterizing Architecturally Significant Requirements
err2013-03-01
err90
errOAAI
errChen, Lianping; Babar, Muhammad Ali; Nuseibeh, Bashar
errShare
errSave
Global hydro-environmental lake characteristics at high spatial resolution
err2022-06-23
err0
errOAAI
errBernhard Lehner; Mathis L. Messager; Maartje C. Korver; Simon Linke
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Drivers and restrainers to adoption and spread of evidence-based health service delivery interventions: The case of CAPABLE
err2022-03-01
err0
errOAAI
errSarah L. Szanton; Alice Bonner; Deborah Paone; Mark Atalla; Erika Hornstein; Dawn Alley; Bruce Leff; Laura N. Gitlin
errShare
errSave
Enhancement of pyramid solar distiller performance using reflectors, cooling cycle, and dangled cords of wicks
err2021-06-01
err0
PREAI
errF.A. Essa; Wissam H. Alawee; Suha A. Mohammed; A.S. Abdullah; Z.M. Omara
errShare
errSave
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
“Industry 4.0” in Europe and East Asia
err2018-01-01
err0
errOAAI
errSoemon Takakuwa; Ivica Veza; Stipe Celar
errShare
errSave
researcher View more