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

Unable to run example_tsk.py #1

Open
sayan1999 opened this issue Jan 11, 2021 · 0 comments
Open

Unable to run example_tsk.py #1

sayan1999 opened this issue Jan 11, 2021 · 0 comments

Comments

@sayan1999
Copy link

After installing the respective dependencies I am unable to run the file example_tsk.py

Error:

python3Traceback (most recent call last):
  File "scikit-fuzzy-tsk-systems/skfuzzy/control/controlsystem.py", line 813, in _process_rules
    raise StopIteration()
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "example_tsk.py", line 29, in <module>
    tipping_ctrl = fcontrol.ControlSystem([rule1, rule2, rule3])
  File "scikit-fuzzy-tsk-systems/skfuzzy/control/controlsystem.py", line 47, in __init__
    self.addrule(rule)
  File "scikit-fuzzy-tsk-systems/skfuzzy/control/controlsystem.py", line 100, in addrule
    for r in self.rules:
  File "scikit-fuzzy-tsk-systems/skfuzzy/control/controlsystem.py", line 768, in __iter__
    self._cache = list(self._process_rules(self.all_rules[:]))
RuntimeError: generator raised StopIteration

Any way out to make it run? Have been using skfuzzy for mamdani, don't want to migrate for TSK. Any guidance will be appreciated :)

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

1 participant