list_remote_networks#
- causalbase.datasets.list_remote_networks(source=None)[source]#
Return the networks
fetch_network()can download, with their variable counts.- Parameters:
- source{“bnlearn”, “bnRep”} or None, default=None
Only the networks of one repository; None lists both. bnRep’s names carry the prefix
bnrep_, since some clash with bnlearn’s.
- Returns:
- dict[str, int]
Network name to number of variables, bnlearn’s first, each repository from the smallest network to the largest.
- Raises:
- ValueError
If source is not one of the two repositories.
Examples
>>> from causalbase.datasets import list_remote_networks >>> networks = list_remote_networks() >>> len(networks), networks["pathfinder"], networks["bnrep_earthquake"] (226, 109, 40)