-
Notifications
You must be signed in to change notification settings - Fork 0
Remove dangling nodes #2
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
base: gitlab-runner
Are you sure you want to change the base?
Conversation
Hey mark I’m getting an error on this, says the trim config item is unknown. I’m importing base neat, I have it in the [NEAT] Section. Does it belong somewhere else? |
Figured it out, the configuration name isn’t listed in reproduction.py |
Ok back on last bit, AttributeError: 'DefaultGenome' object has no attribute 'trim_network' yeeted half the file names to keep my stuff safe but yeah thats a lil funky |
Did you install the correct version of NEAT? You can do it the following way (I would recommend to use a separate virtual environment)
the "-e ." installs the module from the current folder as "editable project". That means you can import neat normally without local references but still make local changes to the file in the project and see the changes in the module immediately. If you did it correctly you should see the "trim_function" in the neat-python/neat/genome.py in line 302 if you just do pip install neat it will pull neat from pypi without the changes. |
Yep turns out most of my problems came from that. Though I do recommend a couple of quick fixes in your code. Just a sec |
|
yeah u r right. it makes more sense that way. Gonna change it and test it and then push it |
Yeah, it yelled at me when that wasn’t there so I had to put it in manually |
Depending where you add ConfigParameter('trim_dangling_after_n_generations_wo_improvment',int) you have to add trim_dangling_after_n_generations_wo_improvment at different places in the config file. Before you had to add it to the "NEAT" area. Now I changed it to the reproduction area |
Removes dangling nodes
solves CodeReclaimers#250