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

About Fuzzy inferred membership values for input variables at each run #15

Open
tawdes opened this issue Aug 25, 2022 · 1 comment
Open

Comments

@tawdes
Copy link

tawdes commented Aug 25, 2022

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 tawdes changed the title About Fuzzy membership values for input variables at each run About Fuzzy inferred membership values for input variables at each run Aug 25, 2022
@aresio
Copy link
Owner

aresio commented Nov 21, 2023

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

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