peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

Latest build can't find params.MutateNeuronTraitsProb #28

Open dsblank opened 7 years ago

dsblank commented 7 years ago

Just install MultiNEAT from master with Python3. Getting an error running TestTraits.py:

$ python3 TestTraits.py 
Tip: install the OpenCV computer vision library (2.0+) with Python bindings
     to get convenient neural network visualization to NumPy arrays
Traceback (most recent call last):
  File "TestTraits.py", line 50, in <module>
    params.MutateNeuronTraitsProb = 0.8
AttributeError: '_MultiNEAT.Parameters' object has no attribute 'MutateNeuronTraitsProb'

And checking to make sure that it is the right version of the code, and indeed it is not there:

$ ipython3
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import MultiNEAT
Tip: install the OpenCV computer vision library (2.0+) with Python bindings
     to get convenient neural network visualization to NumPy arrays

In [2]: params = MultiNEAT.Parameters()

In [3]: dir(params)
Out[3]: 
['ActivationADiffCoeff',
 ...
 'MutateActivationAProb',
 'MutateActivationBProb',
 'MutateAddLinkFromBiasProb',
 'MutateAddLinkProb',
 'MutateAddNeuronProb',
 'MutateNeuronActivationTypeProb',
 'MutateNeuronBiasesProb',
 'MutateNeuronTimeConstantsProb',
 'MutateRemLinkProb',
 'MutateRemSimpleNeuronProb',
 'MutateWeightsProb',
 'MutateWeightsSevereProb',
 ...]

I see that recent changes involve adding this parameter. Did a cpp file not make it into git?

KKalem commented 7 years ago

Commenting out the two lines there seems to "fix" the issue temporarily.