aresio / simpful

A friendly python library for fuzzy logic reasoning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Examples for rule integrity

cupressus opened this issue · comments

Please add a script to ./examples, which illustrates how to construct the rule strings properly when combining operators. Some examples, I would find helpful

  • how to use NOT
  • how to combine multiple NOTs
  • how to combine AND, OR, NOT

For example, I noticed that this does not work:
"IF (NOT (service IS low)) AND (food IS high) THEN (tip IS high)"
while this does
"IF (food IS high) AND (NOT (service IS low)) THEN (tip IS high)"
Documentation would have helped. Thank you!