gCastle: A Python Toolbox for Causal Discovery

Keli Zhang, Shengyu Zhu, Marcus Kalander, Ignavier Ng, Junjian Ye +2 more
11/30/2021
97 citations
cs.LGstat.ML

Official code: huawei-noah/trustworthyAI (1,154 stars, Python, Apache-2.0, last commit 2025-11-13).

Abstract

$\texttt{gCastle}$ is an end-to-end Python toolbox for causal structure learning. It provides functionalities of generating data from either simulator or real-world dataset, learning causal structure from the data, and evaluating the learned graph, together with useful practices such as prior knowledge insertion, preliminary neighborhood selection, and post-processing to remove false discoveries.

Show full abstract

Compared with related packages, $\texttt{gCastle}$ includes many recently developed gradient-based causal discovery methods with optional GPU acceleration. $\texttt{gCastle}$ brings convenience to researchers who may directly experiment with the code as well as practitioners with graphical user interference. Three real-world datasets in telecommunications are also provided in the current version. $\texttt{gCastle}$ is available under Apache License 2.0 at \url{https://github.com/huawei-noah/trustworthyAI/tree/master/gcastle}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Trustworthy AI related projects

1,154255Python, Jupyter Notebook1 years agoApache-2.0
causal-discoverycausal-inferencecausalitygraphindependence-tests+4 more

Similar Papers

Cite this paper

@article{zhang2021gcastle,
  title  = {gCastle: A Python Toolbox for Causal Discovery},
  author = {Keli Zhang and Shengyu Zhu and Marcus Kalander and Ignavier Ng and Junjian Ye and Zhitang Chen and Lujia Pan},
  year   = {2021},
  eprint = {2111.15155},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.15155}
}

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/2111.15155.svg)](https://codeofpaper.com/paper/2111.15155)

Discussion