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

Thank you so much! #54

Open
shahintaj196 opened this issue Dec 13, 2019 · 1 comment
Open

Thank you so much! #54

shahintaj196 opened this issue Dec 13, 2019 · 1 comment

Comments

@shahintaj196
Copy link

Thank you so much!
This completely fixed my problem. My initialization time went from 12 minutes to 1 second, and my reset time also went from 12 minutes to 1 second. The time to run the engine, declare facts, and reset the engine after it has been run once have all improved from approximately 30 seconds to near instantaneous.
Thank you again and have a nice day!

Originally posted by @ab612 in #7 (comment)

@shahintaj196
Copy link
Author

hello.I want to mesure policy proccessing time in my code?
what shoud i do?
for example in below code how obtain policy(rule) procceing time?

class animal(Fact):
pass
class age_animal(KnowledgeEngine):
@rule(animal(age='1'))
def f1(self):
print("young")

class P(KnowledgeEngine):
@rule(animal(age='7))
def f2(self):
print("old")

engine = age_animal()
engine.reset()
engine.declare(animal(age=input("Enter age value:\n") ))
engine.run(

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

1 participant