KTBNInference.interfaceSize
- KTBNInference.interfaceSize()
Introspection only: the size of the forward interface of the repeating window, i.e. how many node occurrences have to cross each slice boundary.
- Returns:
the interface size
- Return type:
int
Example
import pyagrum as gum
import pyagrum.ktbn as ktbn
model = ktbn.KTBN.fromBN(gum.fastBN("X0->X1"))
model.cpt("X", 0).fillWith([0.5, 0.5])
model.cpt("X", 1).fillWith([0.9, 0.1, 0.2, 0.8]) # P(X[t] | X[t-1])
ie = ktbn.KTBNInference(model)
ie.interfaceSize() # X crosses each slice boundary
# 1
Class