I want to use Python multiprocessing to run grid search for a predictive model. When I look at core usage, it always seem to be using only one core. Any idea what I\'m doing wro
I'd say :
for g in grid: g.p = multiprocessing.Process(target=worker, args=(g,GRID_hx)) jobs.append(g.p) g.p.start() for g in grid: g.p.join()
Currently you're spawning a job, then waithing for it to be done, then going to the next one.