BayesNetFragment.updateMetaData
- BayesNetFragment.updateMetaData()
Update the model’s built-in metadata (version, creation date, last modification date).
This method is called automatically by writers before saving the model to a file.
- Return type:
None
Example
import pyagrum as gum
bn = gum.fastBN("A->B->C<-D;C->E")
fragment = gum.BayesNetFragment(bn)
fragment.installAscendants("C") # A, B, C, D
sorted(fragment.properties())
# []
fragment.updateMetaData()
sorted(fragment.properties())
# ['creation', 'lastModification', 'software']
Class