etna.auto.runner.ParallelLocalRunner#
- class ParallelLocalRunner(n_jobs: int = 1, backend: str = 'multiprocessing', mmap_mode: str = 'c', joblib_params: dict | None = None)[source]#
Bases:
AbstractRunnerParallelLocalRunner for multiple parallel runs with joblib.
Note
This class requires
autoextension to be installed. Read more about this at installation page.Notes
Global objects behavior could be different while parallel usage because platform dependent new process start. Be sure that new process is started with
forkviamultiprocessing.set_start_method. If it’s not possible you should try define all globals beforeif __name__ == "__main__"scope.Warning
This class uses
dillmodule during serialization which might be not secure.Init ParallelLocalRunner.
- Parameters:
Methods
__call__(func, *args, **kwargs)Call given
funcwith Joblib and*argsand**kwargs.