'SWI-Prolog: How to retrieve confidence intervals for both input and output?
I have a knowledge base in SWI-Prolog that consists of rules with the form: input(a,c1,b,c2,c,c3):-output(good,c4).
(c1,c2,c3,c4 represent the confidence values of the values a,b,c)
I am trying to retrieve all the confidence values, but only the input ones appear when I used the query : retractall(output()),retractall(input()), assertz(output(good,C4)), input(a,C1,b,C2,c,C3).
I also tried doing the other way around like : retractall(retractall(output()),(input()), assertz(input(a,C1,b,C2,c,C3)),(output(good,C4)). but then I only receive "false".
Any ideas?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|