CredalNet.domainSize
- CredalNet.domainSize(id)
- Parameters:
id (
int) – The id of the node- Returns:
The cardinality of the node
- Return type:
int
Example
import pyagrum as gum
cn = gum.CredalNet(gum.fastBN("A[3]->B"), gum.fastBN("A[3]->B"))
cn.domainSize(cn.src_bn().idFromName("A"))
# 3
Class