Input/Output Formats for Bayesian Networks

PyAgrum supports several formats for saving and loading graphical models, but not all formats preserve every feature of the models. Below is a guide to the supported formats and their capabilities.

Supported Formats

Warning

Only Pickle and BIFXML formats guarantee complete preservation of all graphical model features Other formats may lose some of this information during serialization.

Pickle (Alternative for complete preservation)

The Python pickle format

Other Supported Formats

The following formats are supported but may not preserve all model features:

  • Net (.net): Standard format for Bayesian networks but may lose some metadata

  • DSL (.dsl): GeNIe format with some limitations

  • UAI (.uai): Very Simple Format for Bayesian networks and Markov networks with limitations

  • BIF (.bif): Format for Bayesian networks with limitations

  • etc. (see pyagrum.availableBNExts() for a complete list).