BayesNet.saveNET
- BayesNet.saveNET(*args)
Save the BayesNet in a NET file.
- Parameters:
name (
str) – the file’s nameallowModificationWhenSaving (
bool) – by default,pyagrum.config['core','allowModificationWhenSaving'](False unless configured). if true, syntax errors are corrected when saving the file. If false, they throw a FatalError.
- Return type:
None
Example
import pyagrum as gum
bn = gum.fastBN("A->B->C")
bn.saveNET("model.net")
bn2 = gum.loadBN("model.net")
bn2.hasSameStructure(bn)
# True
Class