Hi, I am having some trouble running modelfitting.py. Playdoh throws an exception when trying to run line 208 in synchandler.py:
result = getattr(task, m)(*a, **k)
The exception apparently happens three times, when getattr tries to call the methods start, initialize and get_result from class Optimization. The error messages are, respectively:
Traceback (most recent call last):
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/synchandler.py”, line 208, in execute
result = getattr(task, m)(*a, **k)
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/optimization/optimization.py”, line 268, in initialize
self.initialize_algorithm()
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/optimization/optimization.py”, line 288, in initialize_algorithm
self.engine.initialize()
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/optimization/cma_es.py”, line 103, in initialize
self.fitness_gbest = inf * ones((self.groups,self.mu))
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/numpy/core/numeric.py”, line 192, in ones
a = empty(shape, dtype, order)
TypeError: ‘numpy.float64’ object cannot be interpreted as an index
Traceback (most recent call last):
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/synchandler.py”, line 208, in execute
result = getattr(task, m)(*a, **k)
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/optimization/optimization.py”, line 353, in start
fitness = self.get_fitness()
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/optimization/optimization.py”, line 315, in get_fitness
param_values = self.parameters.get_param_values(self.X)
AttributeError: ‘Optimization’ object has no attribute ‘X’
An exception occurred in sub-process #0
Traceback (most recent call last):
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/synchandler.py”, line 208, in execute
result = getattr(task, m)(*a, **k)
File “/home/pablo/.conda/envs/brian1/lib/python2.7/site-packages/playdoh/optimization/optimization.py”, line 410, in get_result
group_best_X = self.best_X[group]
AttributeError: ‘Optimization’ object has no attribute ‘best_X’
I am not using any gpu and set the simulation to run with only 1 cpu. Is this an issue?