question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

neat.evolve() crashes when fitness set to null

See original GitHub issue

Running my code I now have this error ReferenceError: Parameter "dataset" is required; parameter "dataset" is missing.

Code: neat.evolve(null, filter, adjust);

It seems that evolve no longer allows null datasets.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:32 (22 by maintainers)

github_iconTop GitHub Comments

2reactions
christianechevarriacommented, Aug 28, 2019

I added a null check for fitness. It’s now working poorly. Again it will never increase the generation number. It never returns from this method: await self.evaluate(evolve_dataset);

Think I just found the culprit, turns out the default fitness is just a regular synchronous function so we shouldn’t be using await for it

The tests we had weren’t checking the default self.fitness so I’m going to make sure that we explicitly test for it and also for the new Neat({ fitness: null }) cases

Awesome catch @dan-ryan 🎆

2reactions
dan-ryancommented, Aug 28, 2019

I added a null check for fitness. It’s now working poorly. Again it will never increase the generation number. It never returns from this method: await self.evaluate(evolve_dataset);

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evolving Neural Networks NEAT With 3D Cars + Tutorial
Tutorial starts at 16:12!!!This project is on an agent problem solver program that I made in Unity. This application can take a given...
Read more >
NEAT – For the love of challenges :) - A Developers Blog
This first demo is about sweepers which main function is to seek and collect as many mines as possible. The fitness function in...
Read more >
bubbles, crashes, and endogenous expectations in
Fourteen of twenty-two experiments exhibit price bubbles followed by crashes relative to intrinsic dividend value. When traders are experienced this reduces ...
Read more >
Neuroevolution of an Automobile Crash Warning System
this paper, a vehicle warning system is evolved to predict such crashes in the RARS driving simulator. The Neu-. roEvolution of Augmenting Topologies...
Read more >
Exceptions and Error Handling, C++ FAQ
If the “use f” part of fct() throws an exception, the destructor is still invoked and the file is properly closed. This contrasts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found