nature-of-code / NOC-S17-2-Intelligence-Learning

Syllabus for Part 2 of Nature of Code: "Intelligence and Learning" at ITP Spring 2017 Edit
934 stars 341 forks source link

Genetic image in Processing #50

Open obackhoff opened 7 years ago

obackhoff commented 7 years ago

You mentioned the genetic image program in the genetic TSP problem, I wrote a Processing.org sketch that does that :) You only need to download the G4P library for the basic GUI. I occasionally improve the code, but it runs fine just as it is. https://github.com/obackhoff/Genetic_Image

As a suggestion, for genetic algorithms, I would add different levels of mutation that could occur.. sometimes drastic change, sometimes subtle. Also, I would keep the n most fit objects of the population, so the population does not diverge from the current best fit and turns into all random. Cheers for the great content.

shiffman commented 7 years ago

Thanks for this!