Giter VIP home page Giter VIP logo

Comments (11)

mikefenton avatar mikefenton commented on August 28, 2024

Hmm, an interesting one. Crossover currently doesn't allow invalids to be created (i.e. crossover will continue until all children in the population are valid), but there's no such catch for mutation. Should we implement something like that for mutation?

from ponyge2.

dvpfagan avatar dvpfagan commented on August 28, 2024

from ponyge2.

jmmcd avatar jmmcd commented on August 28, 2024

Probably the default should be to allow crossover to create invalids since that is the published algorithm. Maybe add switches --no-crossover-invalids and --no-mutation-invalids.

from ponyge2.

mikefenton avatar mikefenton commented on August 28, 2024

Switch added for --no_crossover_invalids. However, mutation is not quite so easy to put various checks in place (e.g. limitations on max depth/nodes/invalids) as the current mutation is done with a list(map()) function, necessitating a bit more thought to sort out.

from ponyge2.

mikefenton avatar mikefenton commented on August 28, 2024

Mutation now has the same checks as crossover. All checks have been moved to utilities.representation.check_methods.check_inds. Checks can be extended to suit.

from ponyge2.

mikefenton avatar mikefenton commented on August 28, 2024

Setting the default fitness is now the responsibility of each individual fitness function. By default, we have set the default_fitness value of each fitness function to numpy.NaN. This allows us to calculate population statistics over the entire population by filtering out these np.NaN values using numpy's np.nanmax(), np.nanmin(), and np.nanmean() functions. PonyGE will no longer crash if all individuals are invalid.

from ponyge2.

dvpfagan avatar dvpfagan commented on August 28, 2024

from ponyge2.

mikefenton avatar mikefenton commented on August 28, 2024

All this info should be in the README I presume. RTFM issue...

from ponyge2.

dvpfagan avatar dvpfagan commented on August 28, 2024

from ponyge2.

mikefenton avatar mikefenton commented on August 28, 2024

Agreed. It's gonna take a fair while to ensure everything is in the README. When the code review is being done it might be an idea to check that every aspect is documented in the README somehow...

from ponyge2.

dvpfagan avatar dvpfagan commented on August 28, 2024

from ponyge2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.