fastxml icon indicating copy to clipboard operation
fastxml copied to clipboard

Issue 34

Open supercoder-dev opened this issue 1 year ago • 1 comments

To solve the multiprocessing issue, we need to wrap the call to self._build_roots(X, y, weights) inside an if __name__ == '__main__': block. This ensures that the multiprocessing module works correctly when n_jobs is greater than one. To solve the problem, we need to modify the fork_call function to use multiprocessing.get_context('fork') for creating the process. Additionally, we need to ensure that the process creation is wrapped in a if __name__ == '__main__': block to avoid the RuntimeError.

supercoder-dev avatar Jun 19 '24 13:06 supercoder-dev

I'll try it out today; on first blush the changes seem reasonable.

It's also clearly time to drop python2 support.

Refefer avatar Jun 19 '24 13:06 Refefer