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

Syntax error #17

Open
eyo11 opened this issue Dec 21, 2020 · 1 comment
Open

Syntax error #17

eyo11 opened this issue Dec 21, 2020 · 1 comment

Comments

@eyo11
Copy link

eyo11 commented Dec 21, 2020

Someone please fix this issue. I had some trouble using the membershipfunction, but then I did the following but still get an error:
On my notebook, I use import anfis and from anfis.membership import membershipfunction. The rest is as the current code on github is.
I get this error:
File "/opt/anaconda3/lib/python3.8/site-packages/anfis/membership/membershipfunction.py", line 19
if len(rowInput) <> len(self.MFList):
^
SyntaxError: invalid syntax

@annakorotysheva
Copy link

For python 3, replace <> with !=.
It will look like this:

if len(rowInput) != len(self.MFList):

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