Painting by numbers --------------------- * **Topic:** evolutionary algorithms, unsupervised learning * **Task A:** 1. Implement breeding of two solutions in the algorithm. 2. Try to find a good cover for the default image of a star. Try populations with 10-100 solutions. Also try changing the number of generations and see how that affects the final result. * **Task B:** 1. Try to cover the larger star or Mona Lisa images. 2. Study the solutions. What kinds of features are easily found by the algorithm and what is more difficult? * **Template:** `genetic.py `_ * **Data:** - `starman.png `_ - `lisa.png `_ * **Further reading:** - https://en.wikipedia.org/wiki/Genetic_algorithm - https://en.wikipedia.org/wiki/Evolutionary_algorithm genetic.py ################ .. automodule:: genetic :members: :undoc-members: