BNMBootstrapLearner.useLocalSearchWithTabuList

BNMBootstrapLearner.useLocalSearchWithTabuList(tabu_size=None, nb_decrease=None)

Example

import pyagrum as gum
import pyagrum.bnmixture as bnm

gum.initRandom(42)
bn = gum.fastBN("A->B->C;A->D")
gum.generateSample(bn, 1000, "data.csv")
lrn = bnm.BNMBootstrapLearner("data.csv", template=bn, N=5)  # 5 bootstrap iterations
lrn.useLocalSearchWithTabuList(tabu_size=10, nb_decrease=2)  # for the reference BN and all the bootstrapped BNs
mix = lrn.learnBNM()
mix.size()
# 5
sorted(mix.refBN.names())
# ['A', 'B', 'C', 'D']

Class

BNMBootstrapLearner