SirBob01 / NEAT-Python

Genetic learning algorithm implementation for simulations, games, or general machine learning problems
BSD 3-Clause "New" or "Revised" License
47 stars 10 forks source link

Bug fix and replaced math package with numpy #6

Closed foster999 closed 4 years ago

foster999 commented 4 years ago

Fixed bug where activation() was called but not assigned - assigned the np.tanh() function to activation. No worries if this is not what you were intending for this function, but code doesn't run without something assigned

Replaced math with numpy (np), to enable use of arrays when refactoring

SirBob01 commented 4 years ago

Hi! So apparently, you didn't need to define a new activation function. It's supposed to call forward's optional parameter, but there was a typo. So now I believe there's a much larger bug lurking somewhere because I would expect the function to call anyway, but it never gave me an error.

I'm still looking into this though.