This commit is contained in:
Vitor Santos Costa
2019-04-01 13:40:17 +01:00
parent b24df86cb0
commit 9156b90b66
3 changed files with 38 additions and 29 deletions

View File

@@ -79,10 +79,7 @@ bind_maplist([Node-(Node-Pr)|MapList], Slope, X) :-
get_prob(Node, Prob) :-
get_fact_probability(Node,Prob).
gradient(QueryID, l, Slope) :-
probability( QueryID, Slope, Prob),
assert(query_probability_intern(QueryID,Prob)),
fail.
gradient(_QueryID, l, _).
/* query_probability(21,6.775948e-01). */