CodeReclaimers / neat-python

Python implementation of the NEAT neuroevolution algorithm
BSD 3-Clause "New" or "Revised" License
1.42k stars 492 forks source link

net active bug #264

Closed Kolya142 closed 1 year ago

Kolya142 commented 1 year ago

nnout = net.active(x,y, dis) TypeError: 'int' object is not callable

Ramko9999 commented 1 year ago

What were the values you inputted for x, y and dis?

Kolya142 commented 1 year ago

position x, posion y, distance

Ramko9999 commented 1 year ago

I believe net.active is supposed to take in a list of values. So instead of net.active(x, y, dis), it should be net.active([x, y, dis]).

ntraft commented 1 year ago

The function is called activate, not active. self.active is an integer variable. That's why the error message says "int is not callable".