twmeggs / anfis

Python implementation of an Adaptive neuro fuzzy inference system
MIT License
201 stars 108 forks source link

Syntax error #17

Open eyo11 opened 3 years ago

eyo11 commented 3 years ago

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 commented 1 year ago

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

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