Gael - I tried separating out the lambda function into a standalone
function. Unfortunately no luck - same result :(.
Olivier - I'm using the default, which is n_jobs=1, so hopefully that
shouldn't be a problem.
The reason I'm using the threads is that I want to be able to train models
using a variety of different parameters that aren't actually parameters of
the classifier/regressor. These parameters involve feature construction
and things like that. I want to be able to train separate models testing
each of these parameters while making as much use of my 8 processors as I
can.
Previously when I was trying to use cross_val_score with n_jobs > 1, it
would always hang. Since then I think it has started working - I have no
clue why it's working now but wasn't before. I may simply go back to
trying that approach, though with 4 cv folds, I still won't be able to use
all 8 processors.
On Mon, Oct 6, 2014 at 8:39 AM, Gael Varoquaux <
[email protected]> wrote:
> > I'm trying to use cross_val_score inside a lambda function to take full
> > advantage of my processors -
>
> Try not using a lambda function, but a fully-feldged function. Parallel
> computing has problems with lambda functions.
>
> Gaƫl
>
>
> ------------------------------------------------------------------------------
> Slashdot TV. Videos for Nerds. Stuff that Matters.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general