Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

https://fuzzylogic.readthedocs.io/en/latest/Discussion/ #52

giscus[bot] bot started this conversation in General
Discussion options

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Hello Mr Kiefner,

after installing pip and fuzzylogic on a new set up Manjaro OS I tested some old code of mine, using your fuzzy logic.

I observed an issue in the "call" function from the "fuzzylogic/classes.py":
Line 447 "index = sum(v.center_of_gravity * x for v, x in weights) / sum(x for v, x in weights)" threw a TypeError: unsupported operand type(s) for *: 'method' and 'float'

After looking over the code I noticed a missing "()" after the "v.center_of_gravity" function call. With this little change it worked as usual.

I'm not sure why I observed this error just now, maybe it's some bug with installing it on a Manjaro OS, but may you look over it.

Best regards and thanks for this awesome library
Robyn Gehler

You must be logged in to vote
1 reply
Comment options

amogorkon Jul 25, 2024 — with giscus
Maintainer

Hi,

thanks for reporting it, it's fixed it in a new commit. Sorry for the inconvenience.

I have been tinkering on the defuzzification algorithm lately. Since it's quite complex I fear there may be more bugs in this part of the lib. If you notice anything spurious, please let me know.

Best regards,
Anselm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /