simpful icon indicating copy to clipboard operation
simpful copied to clipboard

About Fuzzy inferred membership values for input variables at each run

Open tawdes opened this issue 1 year ago • 1 comments

Hi Could you please tell me where I can get fuzzy inputs membership values assigned at every run of Fuzzy inference to calculate Fuzzy score.

Thank you.

tawdes avatar Aug 25 '22 11:08 tawdes

Dear Tawdes,

we did not create a specific interface for that. One option would be to iterate over the dictionary of linguistic variables and, for each one, iterate over the list of fuzzy sets it contains. You can get the membership values by passing the current state of the linguistic variable. Something like this:

for ling_variable, val in FS._lvs.items():
    print(ling_variable)
    for fuzzy_set in val._FSlist:
      print(fuzzy_set, fuzzy_set.get_value(FS._variables[ling_variable]))

we are considering to implement a simpler and more straightforward interface for this. If you need it urgently, we can prioritize this feature. Let me know!

All the best,

Marco

aresio avatar Nov 21 '23 13:11 aresio