neat-python icon indicating copy to clipboard operation
neat-python copied to clipboard

NEAT compatibility_weight_coefficient error

Open abarb305 opened this issue 1 year ago • 1 comments

For context I'm new to coding. I'm using NEAT for the first time, a neat_config.txt file has been setup with all the parameters, including compatibility_weight_coefficient =0.4.

Python (jupyter notebook) gives me the following error: RuntimeError: Missing configuration item: compatibility_weight_coefficient

The parameter is obviously part of the config file.

What I've tried so far with no success: -unistall/install NEAT-Python -deleted and added back in compatibility_weight_coefficient on the neat_config.txt file. -recreated the entire notebook.

  • tried using chatgpt 4 and bard for help, both ran out of answers and suggested I get help from the community.

What am I doing wrong?

Thank you in advance

abarb305 avatar Jan 22 '24 14:01 abarb305

  • It would be helpful to see your config file.
  • It would be easiest to start with one of the examples from the /examples/ directory, e.g. https://github.com/CodeReclaimers/neat-python/blob/master/examples/memory-fixed/config
  • Note that each config item should be in the correct section, e.g. compatibility_weight_coefficient should be under [DefaultGenome] as it is a config item for that class

th555 avatar Jan 22 '24 17:01 th555