Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/bnt/inference/static/@quickscore_inf_engine/enter_evidence.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function engine = enter_evidence(engine, pos, neg) | |
2 % ENTER_EVIDENCE Add evidence to the QMR network | |
3 % engine = enter_evidence(engine, pos, neg) | |
4 % | |
5 % pos = list of leaves that have positive observations | |
6 % neg = list of leaves that have negative observations | |
7 | |
8 % Extract params for the observed findings | |
9 obs = myunion(pos, neg); | |
10 %inhibit_obs = engine.inhibit(obs, :); | |
11 inhibit_obs = engine.inhibit(:,obs)'; | |
12 leak_obs = engine.leak(obs); | |
13 | |
14 % Find what nodes correspond to the original observed leaves | |
15 pos2 = find_equiv_posns(pos, obs); | |
16 neg2 = find_equiv_posns(neg, obs); | |
17 engine.post = quickscore(pos2, neg2, inhibit_obs, engine.prior, leak_obs); | |
18 %engine.post = C_quickscore(pos2, neg2, inhibit_obs, engine.prior, leak_obs); | |
19 |