BayesNet.properties
- BayesNet.properties()
Return the keys of all metadata properties of the model.
- Returns:
tuple of property names (use
property()to retrieve a value by key)- Return type:
tuple[str,]
Example
import pyagrum as gum
bn = gum.fastBN("A->B")
bn.setProperty("author", "me")
bn.setProperty("license", "MIT")
sorted(p for p in bn.properties() if p in ("author", "license"))
# ['author', 'license']
Class