DiscreteVariable.toStringWithDescription

DiscreteVariable.toStringWithDescription()
Returns:

a description of the variable

Return type:

str

Example

import pyagrum as gum

v = gum.LabelizedVariable("smoking", "does the patient smoke ?", 2)
v.toStringWithDescription()
# 'does the patient smoke ?{0|1}'

Used by

DiscreteVariable, DiscretizedVariable, IntegerVariable, LabelizedVariable, NumericalDiscreteVariable, RangeVariable

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