ShaferShenoyInference.maxMemory
- ShaferShenoyInference.maxMemory()
Gives the upper bound on the memory used by the inference (see method setMaxMemory).
- Returns:
the upper bound in megabytes. 0 means no limit.
- Return type:
float
Example
import pyagrum as gum
bn = gum.fastBN("A->B->C")
ie = gum.ShaferShenoyInference(bn)
print(ie.maxMemory()) # no limit by default
# 0.0
ie.setMaxMemory(0.5)
print(ie.maxMemory())
# 0.5
Class