load_network#

causalbase.datasets.load_network(name)[source]#

Load one of the bundled networks by name.

Parameters:
namestr

One of the keys of list_networks().

Returns:
NetworkBundle

The data, the true structure, and the network.

Raises:
ValueError

If name is not one of the bundled networks.

Examples

>>> from causalbase.datasets import load_network
>>> load_network("cancer").data.n_vars
5