delayed#
- sklearn.utils.parallel.delayed(function)[source]#
Decorator used to capture the arguments of a function.
This alternative to
joblib.delayedis meant to be used in conjunctionwithsklearn.utils.parallel.Parallel. The latter captures the scikit-learn configuration by callingsklearn.get_config()in the currentthread, prior to dispatching the first task. The captured configuration isthen propagated and enabled for the duration of the execution of thedelayed function in the joblib workers.Changed in version 1.3:
delayedwas moved fromsklearn.utils.fixestosklearn.utils.parallelin scikit-learn 1.3.- Parameters:
- functioncallable
The function to be delayed.
- Returns:
- output: tuple
Tuple containing the delayed function, the positional arguments, and thekeyword arguments.
On this page
