~/talk

Being Creative with Genetic Algorithms and Typeclasses

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [scala]
slides:none on file

Implements a reusable genetic algorithm in Scala that decouples genotype decoding via a typeclass for genotype decoding, plugs in different fitness functions, and exercises ScalaCheck property tests for roulette-wheel selection, crossover and mutation. Demos include numeric optimization (population 30, 1,000 iterations) and an image-evolution experiment using 50 triangles (~4,000 bits) that required ~5,700 iterations and ~3 days of runs — works but converges slowly. Uses REPL-driven examples and deterministic RNG injection for testability.

AI-written summary · about

  1. 0:00Introduction
  2. 2:05Outline
  3. 2:50Where can we start
  4. 4:07Creating our own types
  5. 4:47Creating our comparator
  6. 5:55Martins paper
  7. 8:09Skylar
  8. 10:00Type classes
  9. 12:19Examples
  10. 15:19Proposal
  11. 17:56Proposed Algorithm
  12. 22:37One Idea
  13. 23:16Test
  14. 25:05Next Double
  15. 25:57Marriage
  16. 27:10Crossover
  17. 28:08Random mutations
  18. 29:02Final iteration
  19. 30:08Finding the optimal solution
  20. 31:52Modern art
  21. 33:35Image comparison
  22. 34:11Fitness function
  23. 36:46Suggestions
  24. 37:42References
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.