neet-0.2.0.1: 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 

Fields

bestScore :: !Double
 
bestGen :: !Genome
 

Construction

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

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

Update/Fitness

data TestResult Source

A result of evaluating a species

Constructors

TR 

Fields

trScores :: MultiMap Double Genome

The score of each organism

trSS :: !SpecScore

Result SpecScore

trAdj :: !Double

Total adjusted fitness

trSol :: !(Maybe Genome)

Possible Solution

runFitTest :: GenScorer a -> Species -> TestResult 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

Statistics

maxDist :: Parameters -> Species -> Double Source

Gets the max distance between two genomes in a species

Debugging

validateSpecies :: Species -> Maybe [String] Source

Validates a species, possibly returning errors