Skip to content
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

Explanation Module #38

Open
mvasquezb opened this issue Nov 4, 2018 · 1 comment
Open

Explanation Module #38

mvasquezb opened this issue Nov 4, 2018 · 1 comment

Comments

@mvasquezb
Copy link

Wondering if there's any way to implement an explanation module to show reasoning to the end user and if there's any utility in the framework to make it straightforward.

@nilp0inter
Copy link
Contributor

There is no explanation module per se, but you can use the watch utility to see what is happening inside pyknow at various levels:

For example:

from pyknow import watch
watch('RULES')  # Show what rules are triggered
watch('FACTS')  # Show asserted and retracted facts
watch('ACTIVATIONS')  # Show what rules are activated
watch('AGENDA')  # Agenda changes

To hide details you can use unwatch with the same parameters.

Do you have in mind any other type of reasoning reporting? If so, please provide some examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants