Comments (2)
Good catch! The problem is that partially instantiating the rule creates knowledge that enables it, as the log seems to show
[2019-08-27 07:39:06:592] [DEBUG] [URE] Iteration 1/20
[2019-08-27 07:39:06:592] [DEBUG] [URE] Positively weighted sources (1/1):
1 [18165890790953396687][1]
[2019-08-27 07:39:06:592] [DEBUG] [URE] Selected source:
body:
(EvaluationLink (stv 1.000000 1.000000)
(PredicateNode "eats_flies") ; [7213660049930235279][1]
(ConceptNode "Tweety") ; [3735456478155215117][1]
) ; [18165890790953396687][1]
vardecl:
nullatom
complexity: 0
exhausted: 0
rules:
size = 0
[2019-08-27 07:39:06:592] [DEBUG] [URE] The following rules are valid:
size = 1
rule[0]:
if-croaks-and-eats-flies-then-frog-rule [13721906382592422519][-1]
[2019-08-27 07:39:06:592] [DEBUG] [URE] Rule weights:
1 if-croaks-and-eats-flies-then-frog-rule
[2019-08-27 07:39:06:592] [DEBUG] [URE] Selected rule, with probability 0.9 of success:
name: if-croaks-and-eats-flies-then-frog-rule
tv: (stv 0.900000 1.000000)
rule:
(BindLink
(PresentLink
(EvaluationLink
(PredicateNode "croaks") ; [7951887459888016198][1]
(ConceptNode "Tweety") ; [3735456478155215117][1]
) ; [12949780631530868304][-1]
(EvaluationLink
(PredicateNode "eats_flies") ; [7213660049930235279][1]
(ConceptNode "Tweety") ; [3735456478155215117][1]
) ; [18165890790953396687][-1]
) ; [13188132327173885393][-1]
(InheritanceLink
(ConceptNode "Tweety") ; [3735456478155215117][1]
(ConceptNode "frog") ; [780748648436154616][1]
) ; [11901928757656513900][-1]
) ; [13721906382592422519][-1]
[2019-08-27 07:39:06:592] [DEBUG] [URE] Results:
size = 1
atom[0]:
(InheritanceLink
(ConceptNode "Tweety") ; [3735456478155215117][1]
(ConceptNode "frog") ; [780748648436154616][1]
) ; [11901928757656513900][1]
I thought I had fixed it but apparently it's been broken again, pointing out to the lack of good unit test.
I will attempt to fix it later this week or early next week. You are welcome to attempt to fix it yourself if so you wish.
from ure.
I've added a (disabled) unit test for that issue
To fix it I suppose one can add some checks in ForwardChainer::apply_rule
, specifically in
ure/opencog/ure/forwardchainer/ForwardChainer.cc
Lines 407 to 436 in 7f96a6d
to make sure that all constant clauses are present in the kb atomspace before triggering the rule. To identify constant clauses one probably can use
from ure.
Related Issues (20)
- cmake fails due to unify already existing HOT 6
- BackwardChainerUTest fails to build referencing Atomtable HOT 3
- Unbalanced quotations
- Forward chainer is not stable against library changes. HOT 3
- The hyperlink to the term unifier in the README leads nowhere. HOT 1
- Have the URE fully support formula premises wrapped in SetLink
- Add GlobNode support to the unifier HOT 1
- Why not DualLink ? HOT 2
- Using GlobNode in Backward Chainer HOT 2
- add api to extract inference trace HOT 4
- URE compilation fails: warning: control reaches end of non-void function HOT 1
- Rule::unify_source method execution takes about 30% of ForwardChainer execution time HOT 6
- Add BackwardChainerGetLink
- Backward chainer takes super long in this case HOT 3
- Fix replacement example inference tree expansion
- Add python ure_logger bindings HOT 6
- test_conditional_instantiation_1 triggers warnings in pattern engine HOT 6
- Bogus always-false clauses HOT 1
- Possible bug in AndBIT::expand() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ure.