load_xbif#
- causalbase.io.load_xbif(path)[source]#
Parse an XMLBIF (
.xbif) file into a DiscreteBN.- Parameters:
- pathstr or pathlib.Path
Path to the
.xbiffile.
- Returns:
- DiscreteBN
The parsed network.
- Raises:
- FileNotFoundError
If path does not exist.
- ValueError
If an element is missing, a definition names an unknown variable, or a table has the wrong size or rows that do not sum to 1.