raymoo / NEET

Neuroevolution of Augmented Topologies (NEAT) -- in Haskell
GNU General Public License v3.0
12 stars 4 forks source link

Complexity is not measuring connection size #10

Open freckletonj opened 4 years ago

freckletonj commented 4 years ago

https://github.com/raymoo/NEET/blob/4e1986a31f6e269bd94dc0e73939d455ce876a9b/src/Neet/Genome.hs#L635

I don't know if this ever gave you grief or anything, its easy to miss:

-- | Total number of links and nodes.
genomeComplexity :: Genome -> Int
genomeComplexity gen = IM.size (nodeGenes gen) + IM.size (nodeGenes gen)