initialize.ex (201B)
1 defmodule Toolbox.Initialize do 2 def random(genotype, opts \\ []) do 3 population_size = Keyword.get(opts, :population_size, 100) 4 Enum.map(1..population_size, fn _ -> genotype.() end) 5 end 6 end
geneticgenetic algorithm framework | |
| git clone [email protected]:dracuxan/genetic.git | |
| Log | Files | Refs | README |