Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

GESアルゴリズム

Greedy Equivalence Search (GES) アルゴリズムはBIC(Bayesian Information Criterion)などのスコアを最大化する貪欲探索により DAG を求める手法。

エッジを追加したり削除したりしつつ最大のスコアとなるグラフを探索する。

  • 前向き段階(Forward Phase)

    • スコアが最も良くなるように エッジを追加していく

  • 後向き段階(Backward Phase)

    • スコアが最も良くなるように エッジを削除していく

Loading...
Loading...
Loading...
Loading...

スコア

BIC

BIC=−2ℓ(θ^)+klog⁡nBIC = -2\ell(\hat{\theta}) + k\log n

ここで

  • nn:サンプルサイズ

  • kk:モデルのパラメータ数

  • ℓ(θ^)\ell(\hat{\theta}):最尤推定したときの対数尤度

INFO:root:Finished synthetic dataset
<Figure size 800x300 with 4 Axes>
{'fdr': 0.3824, 'tpr': 1.05, 'fpr': 0.52, 'shd': 14, 'nnz': 34, 'precision': 0.4706, 'recall': 0.8, 'F1': 0.5926, 'gscore': 0.0}
Loading...
INFO:pgmpy: Datatype (N=numerical, C=Categorical Unordered, O=Categorical Ordered) inferred from data: 
 {'asia': 'C', 'xray': 'C', 'either': 'C', 'dysp': 'C', 'tub': 'C', 'smoke': 'C', 'bronc': 'C', 'lung': 'C'}
INFO:pgmpy: Datatype (N=numerical, C=Categorical Unordered, O=Categorical Ordered) inferred from data: 
 {'asia': 'C', 'xray': 'C', 'either': 'C', 'dysp': 'C', 'tub': 'C', 'smoke': 'C', 'bronc': 'C', 'lung': 'C'}
INFO:pgmpy: Datatype (N=numerical, C=Categorical Unordered, O=Categorical Ordered) inferred from data: 
 {'asia': 'C', 'xray': 'C', 'either': 'C', 'dysp': 'C', 'tub': 'C', 'smoke': 'C', 'bronc': 'C', 'lung': 'C'}
<Axes: >
<Figure size 212.598x212.598 with 1 Axes>