Happy-Algorithms-League / hal-cgp

Cartesian genetic programming (CGP) in pure Python.
GNU General Public License v3.0
28 stars 10 forks source link

Fails if n_processes>1, Why ? How to solve? #381

Closed Mujtaba1986 closed 4 months ago

Mujtaba1986 commented 10 months ago

Hi, The execution becomes unstable and stuck in an infinite loop of errors if I select more than 1 in n_processes. ea_params = {"n_offsprings": 4, "mutation_rate": 0.03, "n_processes": 1}

How to resolve this issue ? Secondly, Does this parameter means fitness function will run in parallel on multiple core processor ? e.g I have 12 cores, the value of 12 will mean 12 parallel runs of fitness function?

Mujtaba1986 commented 9 months ago

Will someone answer this please ? All the examples work fine with n_processes": 1 but if I increase the value e.g 2,3,4 then examples fail to run.

jakobj commented 5 months ago

hi @Mujtaba1986 sorry for getting back to you so late. could you provide more details about the error? what exactly does examples fail to run mean?

jakobj commented 4 months ago

if the problem persists, please reopen this issue