Skip to content

Distributionally Robust Skeleton Learning of Discrete Bayesian Networks, NeurIPS 2023

Notifications You must be signed in to change notification settings

DanielLeee/drslbn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributionally Robust Bayesian Network Skeleton Learning

This is the official implementation of the following paper accepted to NeurIPS 2023 (spotlight):

Distributionally Robust Skeleton Learning of Discrete Bayesian Networks

Yeshu Li and Brian D. Ziebart

37th Conference on Neural Information Processing Systems (NeurIPS 2023)

[Proceeding] [Virtual] [OpenReview] [arXiv] [SlidesLive]

Requirements

  • torch
  • numpy
  • scipy
  • pandas
  • pgmpy
  • pyCausalFS
  • causal-learn
  • bnlearn

Data Preparation

Download the data from bnlearn, BN Repository and Malone et al. or refer to the released data for the complete data adopted throughout our experiments.

Usage

Single run

python main.py --dataset data/cancer.bif --samples 1000 --noise noisefree --pnoise 0 --method dro_wass --epsilon 1 --threshold 0.1

Experiments

Call exp_mode_bif() or exp_mode_real() in main.py for benchmark data or real-world data respectively.

Function Call

import drsl
import util

# data: <class 'pandas.core.frame.DataFrame'>
# method_name: 'dro_wass' | 'dro_kl' | 'reg_lr'
# epsilon: algorithm parameter
est_weight_mat = drsl.skeleton_learn(data, method_name, epsilon)

# thr: a chosen threshold to extract edges
est_skeleton = util.skel_by_threshold(est_weight_mat, thr)

Citation

Please cite our work if you find it useful in your research:

@inproceedings{
li2023distributionally,
title={Distributionally Robust Skeleton Learning of Discrete Bayesian Networks},
author={Yeshu Li and Brian D Ziebart},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
year={2023},
url={https://openreview.net/forum?id=NpyZkaEEun}
}

Acknowledgement

This project is based upon work supported by the National Science Foundation under Grant No. 1652530.

About

Distributionally Robust Skeleton Learning of Discrete Bayesian Networks, NeurIPS 2023

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages