neet-0.1.0.0: A NEAT library for Haskell

Copyright(c) Leon Medvinsky, 2015
LicenseGPL-3
Maintainerlmedvinsky@hotmail.com
Stabilityexperimental
Portabilityghc
Safe HaskellNone
LanguageHaskell2010

Neet.Species

Contents

Description

 

Synopsis

Documentation

data Species Source

A NEAT Species.

Constructors

Species 

Fields

specSize :: Int
 
specOrgs :: [Genome]

All the organisms in this species

specScore :: SpecScore
 
lastImprovement :: Int

Number of gens ago the best score improved

Instances

data SpecScore Source

Scoring data

Constructors

SpecScore 

Construction

newSpec :: Genome -> [Genome] -> Species Source

Creates a new Species with starter stats from a Genome and the rest

Update/Fitness

runFitTest :: (Genome -> Double) -> Species -> (MultiMap Double Genome, SpecScore, Double) Source

Output the result of testing fitness. Last value is the total adjusted fitness

updateSpec :: SpecScore -> Species -> Species Source

Takes a new SpecScore and updates the metadata of a species