New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) #686
Closed
Closed
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
dc27518
change .gitignore to ignore .DS_Store
BangLiu 88788d6
create gene.hpp, add ne_test.cpp, and created or modified multiple CM…
BangLiu 6ab9add
Created gene.happ, add tests and changed or created CMakeLists.txt
BangLiu ca73f95
Add aDepth to NeuronGene.
BangLiu 30ec0ba
implement CNE, haven't finish.
BangLiu 7fdd7ca
delete blank files
BangLiu e4fbabd
finished genome.hpp, revised gene.hpp
BangLiu 3c8aa62
modified gene.hpp
BangLiu cbb79a2
implemented CNE skeleton; more genome and population functions.
BangLiu 65f093d
implemented XOR test case; need debugging; one heart function -- CNE:…
BangLiu eb16ce2
solved most bugs for testing XOR
BangLiu c6976ac
further solved some bugs in code.
BangLiu 8919bb9
Solved bugs. Need to fulfill Reproduce() to finish CNE.
BangLiu ee548b6
CNE algorithm finished. XOR test passes. Need to revise coding style …
BangLiu faf47a2
Create Species class.
BangLiu adc45b2
Revised LinkGene and related file for NEAT
BangLiu 95c2e53
revised sortSpecies()
BangLiu 1ee07a0
add aAdjustedFitness to genome
BangLiu 39ef07b
fix bug in CNE Reproduce()
BangLiu 74fb4a0
Implemented neat mutations, replace size_t by ssize_t
BangLiu d0883f4
Implemented crossover, some bug exist
BangLiu a605eef
Revise Crossover, solve bugs, more functions implementations.
BangLiu e059af0
revised neat functions. In paper,disabled links also consider for cro…
BangLiu 6c11f32
neat almost finished. Need debugging,need revise coding style, need t…
BangLiu 3c10995
NEAT finished, but has bugs. XOR not pass.
BangLiu 57d4165
In progress of debugging. Add lots of printf ... Will clear them afte…
BangLiu 6a770ec
seems bugs solved. keep printf. Seems information such as species siz…
BangLiu cce115b
solve more bugs
BangLiu 2a9899c
solved more. But still have problem.
BangLiu 1a2cfd8
solved CalcAverageRank bug. Still have more.
BangLiu dacc2e6
currently seems no bug. Previously we removed stale species even when…
BangLiu 2a4c715
revised WeightDiff
BangLiu 6f901a1
Removed redundant members in species, population. haven't remove in g…
BangLiu a80f5f7
Further cleaned some code.
BangLiu 3db85fd
changed the place where we should set the childGenome's NumInput, Num…
BangLiu 8168779
changed neuron_gene, genome's activation. Still need to revise neat.
BangLiu 554a279
Revised MutateAddLink.
BangLiu 1fe7d73
solved some bugs about activation.
BangLiu ff45785
Add Cart Pole test. Result not good. Fitness doesn't improve.
BangLiu 48e15c4
Solved more bugs.
BangLiu fc982b9
Fixed a bug in task. Removed adjustFitness. Problems maybe the parame…
BangLiu 66b0f41
further revised something.
BangLiu 109f05b
Passed Cart Pole problem. Revised neat, task.
BangLiu 8054f00
Implemented test MountainCar, not pass yet.
BangLiu 5ef61fe
Seems passed Mountain Car.. in 1 iteration
BangLiu f213dd8
Revised a bug in TaskMountainCar Action()
BangLiu f234ebd
added Success() for tasks.
BangLiu 96ccef5
Finished double pole. Non-Markov have bug.
BangLiu 24f9baf
revised non-markov, still have bug
BangLiu 4decb0e
revised neat MutateAddLink. Non-Markov still have bug.
BangLiu c46436e
revised neat, clean genome before evaluate.
BangLiu 000d6aa
Merge pull request #1 from mlpack/master
BangLiu 2599077
revised a bug in Activate()
BangLiu 408b40f
fix conflict
BangLiu 0fc792c
changed header file in ne_test
BangLiu 847db95
solved compile bug
BangLiu 10b99ab
change ssize_t, size_t to int. Windows doesn't support ssize_t
BangLiu da55507
revised comment style, bracket style etc. Have strange compile error.
BangLiu beb8ba8
rebuild, solved compile problem. Add default constructors back. Witho…
BangLiu 3b66431
Revised the style of all current code
BangLiu 9480379
revised some tiny styles
BangLiu 4483fc8
Revised NeuronGene to add aCoordinate. Tests all previous testings an…
BangLiu 190e639
Revised neat.hpp. NeuronInnovation considers activation function type…
BangLiu 4cd0054
Implemented first version of Hyperneat.
BangLiu 668fa6e
revised HyperNEAT. No inheritance.
BangLiu 62d5885
Solved bugs. Implemented XOR test. Not pass. Need debug.
BangLiu e176571
in the progress of debugging XOR test
BangLiu dec32ac
Find important bug in Activate()! revised. Still not pass hyperneat xor.
BangLiu bc178c3
small change.
BangLiu 432331b
Solved the duplicated link bug. Changed MutateAddNeuron. Still not pa…
BangLiu 0944516
Make the new neuron type random when add new neuron. Still not pass xor.
BangLiu d66bb14
Revised naming style
BangLiu File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a good idea to set a default initial genome inside the CNE method. The authors start with a genome where each input unit is connected with the output units. But, we could also use a hidden units as you did. This way, we can directly start by evolving the network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zoq Yeah, I will put it in the default constructor. It is just for the testing, I use this style to demonstrate how to use and test the parametric constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, okay, good idea, just checked the CNE method, and couldn't find a default genome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zoq Yeah, I will set seedGenome in default constructor. Currently I haven't add the default constructor. I am planning to add it after the tests passed.