Skip to content
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

Remove active fields from nodes #13

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

glesica
Copy link
Member

@glesica glesica commented Jun 9, 2015

Attempts to speed things up by removing the active fields from nodes.

ahalwright and others added 15 commits June 5, 2015 17:36
…n mu_lambda in Evolution.jl.

This resulted in substantial speedups, expecially for larger, more redundant, chromosomes.
function print_chromosome in Chromosome.jl is broken and not fixed, and the code is not cleaned up.
…re parallel to Chromosome which can

store the "active" and "cache" fields of nodes.  Modified Chromosome to add this parallel data structure.
Added  NodeCache.jl  and ChromosomeCache.jl  to the files listed in CGP.jl.
However, at this point, even "using CGP" is not working.
The cache is defined in ChromosomeCache.jl and NodeCache.jl, and is a parallel data structure
   that contains the "active" and "cache" filds in each node.
A chromosome can be executed without using the "active" and "cache" fields
   using execute_chromosome() and with using these fields by using
   execute_chromosome_cache().
Appropriate modifications to Mutate.jl and to function print_chromosome()
   in Chromosome.jl have NOT been made.
… to Chromosome.jl and Node.jl

   which stores the cache and active fields for each node of a Chromosome.
This allows execution with and without caching.  For single-ouput goals, without caching seems to be
    considerably fast.
The other changed files adapt to these changes in the data structures.
…osomeCache to Union(Nothing,ChromosomeCache).

When there is no cache, this field will be "nothing".
Revised comments and fixed a bug in examples/EvolveGoals.jl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants