CLGLearner.RAveL_MB

CLGLearner.RAveL_MB(T)

Find the Markov Boundary of variable T with FWER lower than Delta.

Parameters:

T (int) – The id of the target variable T.

Returns:

MB – The Markov Boundary of variable T with FWER lower than Delta.

Return type:

set[int]

Example

import pyagrum as gum
import pyagrum.clg as gclg

gum.initRandom(42)  # the draws of pyagrum.clg come from the random generator of aGrUM
clg = gclg.SEM.toclg("""
A = 0[1]
B = 2A[1]
C = -1.5B[1]
""")
gclg.ForwardSampling(clg).makeSample(2000).tocsv("data.csv")
learner = gclg.CLGLearner("data.csv")
learner.RAveL_MB(0)  # the Markov boundary of A
# {1}

Class

CLGLearner