Giter Site home page Giter Site logo

Comments (1)

ShuhuaGao avatar ShuhuaGao commented on June 15, 2024

Hi, you can find details in this file. Nonetheless, I will make some brief explanation below.

  • The first step is selection. N individuals are chosen as the offspring. Then, we apply mutation and crossover to the offspring.
  • You can see from the _apply_crossover here that the recombination is not done for each possible pair of individuals (i.e., no permutation). Instead, crossover only happens between individuals 0 and 1, 2 and 3, 4 and 5, ..., in a sequential way (subject to the crossover probability). If, say, individuals A and B are recombined into two children A' and B', then A and B are replaced by A' and B' immediately in the offspring population.
  • In the final offspring, if an individual is produced by mutation or crossover, then its fitness is labeled invalid and will be evaluated in the next generation (see this line). By contrast, if an individual is simply a copy of an original one, then there is no need to evaluate it again to reduce computational cost. Thus, the neval is just the number of invalid children that need reevaluation, which keeps changing among generations. If you are writing a paper and want to analyze the time complexity, simply view neval as N in the big-O notation.

from geppy.

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.