librelist archives

« back to archive

Some help with for loop

Some help with for loop

From:
Michal Kawalec
Date:
2011-07-10 @ 16:10
Hello,
I wanted to pararellize a very big and long for loop in my program, 
which looks like:
for a,b in enumerate(files):
	do
	a lot of stuff here

Is there an easy way of doing this with joblib?


Best Regards,
Michal

Re: [joblib] Some help with for loop

From:
Gael Varoquaux
Date:
2011-07-11 @ 23:49
Just look at the online documentation for Parallel, you should be able to 
use it to solve your problem. Sorry for being terse, I am replying from my
mobile phone.

----- Original message -----
> Hello,
> I wanted to pararellize a very big and long for loop in my program, 
> which looks like:
> for a,b in enumerate(files):
>     do
>     a lot of stuff here
> 
> Is there an easy way of doing this with joblib?
> 
> 
> Best Regards,
> Michal