-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unstable rule selection by the GHOST action selector #15
Comments
There are also inconsistencies in output of rule goal strength with (FYI: tested without starting cog-server and without using ecan based rules) scheme@(guile-user)> (ghost-parse "#goal: (goal1=0.4) u: lbl2(hi) hi there ^keep") The top level goal strength is not recognized by the same command: scheme@(guile-user)> (ghost-parse "goal: (please_user=0.8)") |
@joejnke Action selection is probabilistic, so not always choosing the one with the highest weight is the expected behavior here. |
@simonmekit Again, put everything in a text file and use See also: singnet/opencog#30 |
yes, indeed using |
@leungmanhin as you mentioned rule-level goal also works fine with "ghostfile.ghost" contains these subsequent lines : scheme@(guile-user)> (ghost-rule-tv "lbl2") |
@simonmekit Sorry I don't see any problem in the above example... What is the expected result? Or are you just talking about the ones in the tutorial? |
yes, I was running tests to make sure that the tutorial complies with current updates and prepare some test-suite. Top level goal works fine with |
@simonmekit no problem, thanks for doing all these! |
The GHOST action selector makes unpredictable rule selection between two same rules but different in their goal strength
(ghost-parse "#goal: (goal1=0.7) u: (hi) hello there ^keep")
and(ghost-parse "#goal: (goal1=0.5) u: (hi) hi there ^keep")
. Running the code(test-ghost "hi")
gives sometimes((WordNode "hi") (WordNode "there") )
and other times((WordNode "hello") (WordNode "there") )
.The expected response was expected to be of the rule with the highest goal strength, that is
((WordNode "hello") (WordNode "there") )
The text was updated successfully, but these errors were encountered: