BNLearner.EMdisableMaxTime
- BNLearner.EMdisableMaxTime()
Allow EM to learn parameters for an infinite amount of time.
- Returns:
the BNLearner itself, so that we can chain useXXX() methods.
- Return type:
Example
import pyagrum as gum
with open("data.csv", "w") as f: # "?" is a missing value
f.write("A,B\n" + "0,0\n0,1\n1,1\n1,1\n?,0\n1,?\n" * 20)
learner = gum.BNLearner("data.csv")
learner.useEM(1e-4).EMsetMaxTime(500.0)
learner.EMisEnabledMaxTime()
# True
learner.EMdisableMaxTime()
learner.EMisEnabledMaxTime()
# False
Class