romainsimon / neuroevolution

:hatching_chick: NeuroEvolution of Augmenting Topologies (NEAT) implementation with Tensorflow.js (still WIP)
MIT License
18 stars 2 forks source link

Sample code is not working #5

Open oom- opened 4 years ago

oom- commented 4 years ago
TypeError: genome.generateNetwork is not a function
    at population.evolve.genome (\NEAT\index.js:11:26)
    at Chromosome.calculateFitness (\NEAT\node_modules\neuroevolution\src\chromosome.class.js:34:20)
    at Population.evaluate (\NEAT\node_modules\neuroevolution\src\population.class.js:36:18)
    at Population.evolve (\node_modules\neuroevolution\src\population.class.js:98:12)
    at Object.<anonymous> (\NEAT\index.js:10:12)
    at Module._compile (module.js:649:14)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
wongjiahau commented 4 years ago

I hit this error too :(

brunnolou commented 4 years ago

It looks like this Repo it's not in sync with npm. @romainsimon could you please update the npm?

image https://npm.runkit.com/neuroevolution/index.js?t=1601729106722