NetworkBundle#
- class causalbase.datasets.NetworkBundle(name, data, truth, network)[source]#
A network, its true structure, and data sampled from it.
- Attributes:
- namestr
The network’s name, e.g.
"asia".- dataDiscreteDataset
5000 rows sampled from network.
- truthDAG
The true structure, re-indexed onto
data.namesso that it can be compared against a learned graph directly.- networkDiscreteBN
The network itself, including its conditional probability tables. Pass it to
causalbase.io.forward_sample()to draw more rows.