返回
CORAL: COde RepresentAtion learning with weakly-supervised transformers for analyzing data analysis
DOI:10.1140/epjds/s13688-022-00327-9.png)
摘要
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.
Keyword:
Data science
Meta science
Representation learning
期刊
IF:
2.5
论文数:
704
被引数:
1.6K
机构
暂无机构信息
引用论文
Drivers and restrainers to adoption and spread of evidence-based health service delivery interventions: The case of CAPABLE促进和阻碍循证卫生服务交付干预措施采纳与推广的因素:CAPABLE案例
Enhancement of pyramid solar distiller performance using reflectors, cooling cycle, and dangled cords of wicks
Desalination
IF0

