LabelizedVariable.domainSize
- LabelizedVariable.domainSize()
- Returns:
the number of modalities in the variable domain
- Return type:
int
Example
import pyagrum as gum
c = gum.LabelizedVariable("c", "color", ["red", "green", "blue"])
c.domainSize()
# 3
Class