DiscreteVariable.name

DiscreteVariable.name()
Returns:

the name of the variable

Return type:

str

Example

import pyagrum as gum

bn = gum.fastBN("A->B")
bn.variable(1).name()
# 'B'

Used by

DiscreteVariable, DiscretizedVariable, IntegerVariable, LabelizedVariable, NumericalDiscreteVariable, RangeVariable

Inheritance diagram of pyagrum.DiscreteVariable, pyagrum.DiscretizedVariable, pyagrum.IntegerVariable, pyagrum.LabelizedVariable, pyagrum.NumericalDiscreteVariable, pyagrum.RangeVariable