Git Product home page Git Product logo

genetic's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nitin42

genetic's Issues

Population list exhausted after attaining 78% fitness

By the time the 6th generation rises, 77.8% of the words has already been formed (only 2 out of 9 alphabets left). However, the fitness simply doesn't improve after this (as can bee seen in output). The population list gets exhausted despite providing it with 90,000 unique combinations.

1 possibility could be that I haven't used Mutation in the script yet. Another could be the wrong crossover mask applied.
Still working on it...

UPDATE: The evolve_2.py performs better than evolve and reaches 88% accuracy in the 6th generation (generates the word "zvolution"). The only modification I made was the crossover mask. In evolve_2, I used a randomly generated mask in contrast to the evolve's single mask (111100000).

This highlights the importance of choosing the correct Crossover Mask.

UPDATE: It done. You can see in output_3 that the fitness is 100% and the word has correctly been guessed. I added on to script_2 by adding up Mutation to about 10% of the new generation. That did the job.
Looks like I underestimated the significance of crossover mask and mutation.

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.