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
