SimpleEA 0.2 → 0.2.1
raw patch · 2 files changed
+6/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- AI/SimpleEA.hs +5/−4
- SimpleEA.cabal +1/−1
AI/SimpleEA.hs view
@@ -134,10 +134,11 @@ >numOnes :: FitnessFunc Char >numOnes g _ = (fromIntegral . length . filter (=='1')) g -The @select@ function is our 'SelectionFunction'. It uses sigma-scaled, fitness-proportionate-selection. 'sigmaScale' is defined in 'SimpleEA.Utils'. By first taking the four-best genomes (by using the @elite@ function) we make sure that maximum fitness-never decreases ('elitism').+The @select@ function is our 'SelectionFunction'. It uses sigma-scaled,+fitness-proportionate selection. 'sigmaScale' is defined in+'AI.SimpleEA.Utils'. By first taking the four best genomes (by using the+@elite@ function) we make sure that maximum fitness never decreases+('elitism'). >select :: SelectionFunction Char >select gs = select' (take 4 $ elite gs)
SimpleEA.cabal view
@@ -1,7 +1,7 @@ name: SimpleEA category: AI build-type: Simple-version: 0.2+version: 0.2.1 synopsis: Simple evolutionary algorithm framework. description: Simple framework for running an evolutionary algorithm by providing selection, recombination, and mutation operators.