DiscreteVariable.setDescription
- DiscreteVariable.setDescription(theValue)
set the description of the variable.
- Parameters:
theValue (
str) – the new description of the variable- Return type:
None
Example
import pyagrum as gum
bn = gum.fastBN("A->B")
bn.variable("A").setDescription("the cause")
bn.variable("A").description()
# 'the cause'
Used by
DiscreteVariable, DiscretizedVariable, IntegerVariable, LabelizedVariable, NumericalDiscreteVariable, RangeVariable
