This commit is contained in:
Vitor Santos Costa 2018-10-13 14:13:07 +01:00
parent a33f2be18b
commit 50fb5d21c0

View File

@ -873,7 +873,7 @@ compute_grad(Grad, GradCount, Probs, Slope, LL) :-
bind_maplist(MapList, Slope, Probs), bind_maplist(MapList, Slope, Probs),
%writeln( MapList ), %writeln( MapList ),
qprobability(BDD,Slope,BDDProb), qprobability(BDD,Slope,BDDProb),
LL is (((BDDProb)-(QueryProb))**2), LL is (BDDProb-QueryProb)*(BDDProb-QueryProb),
%writeln( qprobability(BDD,Slope,BDDProb) ), %writeln( qprobability(BDD,Slope,BDDProb) ),
forall( forall(
member(I-_, MapList), member(I-_, MapList),