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

Defining custom rules instead of just "IS" #13

Open
smejkka3 opened this issue May 30, 2022 · 2 comments
Open

Defining custom rules instead of just "IS" #13

smejkka3 opened this issue May 30, 2022 · 2 comments

Comments

@smejkka3
Copy link

Would there be a way to define my custom fuzzy logic rules which use different format than “IS”. From what I was looking at the simpful code it only supports conditions as follow:

a “IS" b AND b "IS" c THEN a "IS” c

I need to define format as

a “SUBCLASS" b AND b “SUBCLASS" c THEN a “SUBCLASS" c.
Or
a “SUBCLASS" b AND x “TYPE" a THEN x “TYPE” b.
And more custom rules as in the attached picture.

But looking at the https://github.com/aresio/simpful/blob/master/simpful/rule_parsing.py (line 4,5) the only rule which can be parsed is only the “IS” condition.

The question is if there is a way to define these rules without significantly modifying the source code which I might be missing?

@aresio
Copy link
Owner

aresio commented Jun 1, 2022

Hi,

it would be technically possible to parse a different token while keeping the reasoner intact. However, we need to understand the rationale of your proposal first (because both "subclass" and "type" do not seem to represent fuzzy concepts). Can you please elaborate why you need this change in Simpful? Please send an e-mail to marco.nobile@unimib.it, I will answer asap.

Marco

@smejkka3
Copy link
Author

smejkka3 commented Jun 8, 2022

Hi,

it would be technically possible to parse a different token while keeping the reasoner intact. However, we need to understand the rationale of your proposal first (because both "subclass" and "type" do not seem to represent fuzzy concepts). Can you please elaborate why you need this change in Simpful? Please send an e-mail to marco.nobile@unimib.it, I will answer asap.

Marco

I contacted you via email with more details.

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