Smallset Timelines: A Visual Representation of Data Preprocessing Decisions

Lydia R. Lucchesi, Petra M. Kuhnert, Jenny L. Davis, Lexing Xie
6/10/2022
cs.HC

Official code: lydialucchesi/smallsets (14 stars, R, GPL-3.0, last commit 2025-01-23).

Abstract

Data preprocessing is a crucial stage in the data analysis pipeline, with both technical and social aspects to consider. Yet, the attention it receives is often lacking in research practice and dissemination.

Show full abstract

We present the Smallset Timeline, a visualisation to help reflect on and communicate data preprocessing decisions. A "Smallset" is a small selection of rows from the original dataset containing instances of dataset alterations. The Timeline is comprised of Smallset snapshots representing different points in the preprocessing stage and captions to describe the alterations visualised at each point. Edits, additions, and deletions to the dataset are highlighted with colour. We develop the R software package, smallsets, that can create Smallset Timelines from R and Python data preprocessing scripts. Constructing the figure asks practitioners to reflect on and revise decisions as necessary, while sharing it aims to make the process accessible to a diverse range of audiences. We present two case studies to illustrate use of the Smallset Timeline for visualising preprocessing decisions. Case studies include software defect data and income survey benchmark data, in which preprocessing affects levels of data loss and group fairness in prediction tasks, respectively. We envision Smallset Timelines as a go-to data provenance tool, enabling better documentation and communication of preprocessing tasks at large.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Visual documentation for data preprocessing in R and Python

141R, PythonOct 20, 20201 years agoGPL-3.0
data-sciencedata-visualizationdocumentation-toolmachine-learningpreprocessing+4 more

Similar Papers

Cite this paper

@article{lucchesi2022smallset,
  title  = {Smallset Timelines: A Visual Representation of Data Preprocessing Decisions},
  author = {Lydia R. Lucchesi and Petra M. Kuhnert and Jenny L. Davis and Lexing Xie},
  year   = {2022},
  eprint = {2206.04875},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.04875}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.04875.svg)](https://codeofpaper.com/paper/2206.04875)

Discussion