Open dbishai opened 7 years ago
hmm, without a mcve there's not really a good way to help you...
apply_decorator
, toolbox.expr_mut
and pset
defined?that said, from my experience it can help to statically define a composed function instead of loosely coupling it via toolbox... (this means use def myfunc(...)
and later toolbox.register('myfunc', myfunc)
instead of toolbox.register('myfunc', base_func, some_crazy_param_bindings, making_a_whole_new_function)
).
I am using decorated functions within the DEAP framework to limit the tree size and it seems SCOOP does not support pickling decorated functions.
output:
My code works fine with the built in Python 3 multiprocessing pool.map function btw.