MarkovRandomField.ids
- MarkovRandomField.ids(names)
List of ids for a list of names of variables in the model
- Parameters:
lov (
listofstr) – List of variable namesnames (
tuple[str,...])
- Returns:
The ids for the list of names of the graph variables
- Return type:
listofint
Example
import pyagrum as gum
mrf = gum.fastMRF("A--B;B--C")
mrf.ids(["C", "A"])
# [2, 0]
Class