[L14] Problem with futures and ProcessPoolExecutor

I changed the function as shown below and it works. It was a post in this Forum it worked. I think nok was the author of this.

def parallel_trees(m, fn, n_jobs=8):
return list(ThreadPoolExecutor(n_jobs).map(fn, m.estimators_))

4 Likes