parallel#
- mlquantify.utils.general.parallel(func, elements, n_jobs: int = 1, *args)[source]#
Run a function in parallel on a list of elements.
- Parameters:
- funcfunction
Function to run in parallel.
- elementslist
List of elements to run the function on.
- n_jobsint
Number of jobs to run in parallel.
- argstuple
Additional arguments to pass to the function.
- Returns:
- list
List of results from running the function on each element.