-
Notifications
You must be signed in to change notification settings - Fork 444
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
Errors on educational example. #81
Comments
Using str lookups was the old API, try using the |
Unfortunately, using In fact, the query = Exists(x, foursides(x))
print(model[query].true_groundings) |
Hello, it's me again. I was able to produce the result shown in the tutorial. the expected output is |
query = Exists(x, foursides(x)) Add predicates and rules to the modelmodel.add_knowledge(square, rectangle, square_rect, rect_foursides, query, world=World.AXIOM) Add facts to the modelmodel.add_data({square: {'c': Fact.TRUE, 'k': Fact.TRUE}}) Perform inferencemodel.infer() print(model[query].true_groundings) after adding world=World.AXIOM, I got the result |
While trying to replicate the result from the educational examples, I've got this error.
https://ibm.github.io/LNN/education/examples/reasoning.html#simple-geometry-reasoning-example
The text was updated successfully, but these errors were encountered: