English

DagSim: Combining DAG-based model structure with unconstrained data types and relations for flexible, transparent, and modularized data simulation

Artificial Intelligence 2023-05-10 v2

Abstract

Data simulation is fundamental for machine learning and causal inference, as it allows exploration of scenarios and assessment of methods in settings with full control of ground truth. Directed acyclic graphs (DAGs) are well established for encoding the dependence structure over a collection of variables in both inference and simulation settings. However, while modern machine learning is applied to data of an increasingly complex nature, DAG-based simulation frameworks are still confined to settings with relatively simple variable types and functional forms. We here present DagSim, a Python-based framework for DAG-based data simulation without any constraints on variable types or functional relations. A succinct YAML format for defining the simulation model structure promotes transparency, while separate user-provided functions for generating each variable based on its parents ensure simulation code modularization. We illustrate the capabilities of DagSim through use cases where metadata variables control shapes in an image and patterns in bio-sequences.

Keywords

Cite

@article{arxiv.2205.11234,
  title  = {DagSim: Combining DAG-based model structure with unconstrained data types and relations for flexible, transparent, and modularized data simulation},
  author = {Ghadi S. Al Hajj and Johan Pensar and Geir Kjetil Sandve},
  journal= {arXiv preprint arXiv:2205.11234},
  year   = {2023}
}

Comments

12 pages, 1 figure, 1 table

R2 v1 2026-06-24T11:25:32.731Z