ukuleleplayer / pureples

Pure Python Library for ES-HyperNEAT. Contains implementations of HyperNEAT and ES-HyperNEAT.
MIT License
114 stars 36 forks source link

Pruning extraction #7

Closed Matthew-Prinold closed 5 years ago

Matthew-Prinold commented 5 years ago

the conditional statement self.variance(c) > self.variance_threshold in the pruning extraction method of ESNetwork class needs a continue inserting on the line after self.pruning_extraction(coord, c, outgoing) otherwise it will continue on with the variables d_left, d_right, d_top and d_bottom all assigned as None resulting in TypeError: Unorderable types: NoneType() < NoneType()

ukuleleplayer commented 5 years ago

Thanks for noticing, this is totally correct - fixed it by moving the code below into the else statement, which is how it should look. This is the pseudocode: image and it looks like that now.

Cheers!