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

CTRNN Issue in demo?

Open maxss280 opened this issue 7 years ago • 5 comments

I am trying to run the ctrnn demo in python 3.5 but it cannot seem to find the attribute ctrnn?

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-0c6eadc7949e> in <module>()
     10 node2_inputs = [(1, -0.2), (2, 0.9)]
     11 
---> 12 node_evals = {1: neat.ctrnn.CTRNNNodeEval(0.01, sigmoid_activation, sum, -2.75 / 5.0, 1.0, node1_inputs),
     13               2: neat.ctrnn.CTRNNNodeEval(0.01, sigmoid_activation, sum, -1.75 / 5.0, 1.0, node2_inputs)}
     14 

AttributeError: module 'neat' has no attribute 'ctrnn'

I'm not sure what I am missing here because it appears to be there?

maxss280 avatar Mar 07 '17 20:03 maxss280

What version of neat are you using ?

evolvingfridge avatar Mar 07 '17 20:03 evolvingfridge

neat-python-0.91 it looks like

maxss280 avatar Mar 07 '17 21:03 maxss280

Does any of xor examples work ? I am guessing issue might be with "import neat".

evolvingfridge avatar Mar 07 '17 21:03 evolvingfridge

Yeah I was able to get some of the xor models to work. I had to update some of the config though it didn't like using __file__ for some reason for the path? That was all in Windows 10. I switched to my ubuntu environment and I can get everything to run fine same Python version and Neat-Python Version.

Sounds like maybe local to my installation somehow. If no one else has issues on Windows. I'll just stay in Linux lol and play around with it XD thanks for your help!

maxss280 avatar Mar 07 '17 21:03 maxss280

cool, looks like importing issue on windows, try adding import path manually in demo examples.

evolvingfridge avatar Mar 07 '17 22:03 evolvingfridge