godai0519 / BayesianNetwork

An implementation of Bayesian Networks Model for pure C++14 (11) later, including probability inference and structure learning method.
MIT License
39 stars 10 forks source link

Loopy-BP法の実装 #8

Closed godai0519 closed 9 years ago

godai0519 commented 9 years ago

5 でBP法が正しく再実装できたので,Loopy-BP法を実装する基盤が整った.

各lambda_k_とpi_i_の値のブレがepsilon以下になった時に終了するタイプのアルゴリズム.

godai0519 commented 9 years ago

とりあえず動いた. 近似収束・ループ停止部分のコードを書いてないので,それを書く. forが今は100回程度で固定になっていると思う.

godai0519 commented 9 years ago

3ff79370352ef34384b7e7ea6432c10964e4d26b で収束条件追加

godai0519 commented 9 years ago

んー.とりあえずmergeして閉じます.