liquidcarrot / carrot

🥕 Evolutionary Neural Networks in JavaScript
https://liquidcarrot.io/carrot/
MIT License
295 stars 34 forks source link

Fix incorrect array slicing parameters #254

Closed icecream17 closed 3 years ago

icecream17 commented 3 years ago

Ugh I keep getting this error. I put in so many layers!!!! image

I looked at the code to try to do it myself but I ended up finding a bug instead.

Code changed: Array.slice(0, -1) instead of Array.slice(Start at length - 1) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

raimannma commented 3 years ago

See #258