local¶
Classes
LocalRunner for one threaded run. |
|
|
ParallelLocalRunner for multiple parallel runs with joblib. |
- class ParallelLocalRunner(n_jobs: int = 1, backend: str = 'multiprocessing', mmap_mode: str = 'c', joblib_params: Optional[dict] = None)[source]¶
ParallelLocalRunner for multiple parallel runs with joblib.
Notes
Global objects behavior could be different while parallel usage because platform dependent new process start. Be sure that new process is started with
fork
viamultiprocessing.set_start_method
. If it’s not possible you should try define all globals beforeif __name__ == "__main__"
scope.Warning
This class uses
dill
module during serialization which might be not secure.Init ParallelLocalRunner.
- Parameters
n_jobs (int) – number of parallel jobs to use
backend (str) – joblib backend to use
mmap_mode (str) – joblib mmap mode
joblib_params (Optional[dict]) – joblib additional params