<div dir="ltr"><div>Hi,</div><div><br></div><div>In LogisticRegression, n_jobs is only used for one-vs-rest parallelization.</div><div>In LogisticRegressionCV, n_jobs is used for both one-vs-rest and cross-validation parallelizations.</div><div><br></div><div>So in LogisticRegression with multi_class='multinomial', n_jobs should have no impact.</div><div><br></div><div>The docstring should probably be updated as you mentioned. PR welcome :)</div><div><br></div><div>Best,</div><div>Tom</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-19 6:13 GMT+01:00 Sebastian Raschka <span dir="ltr"><<a href="mailto:se.raschka@gmail.com" target="_blank">se.raschka@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I just got confused what exactly n_jobs does for LogisticRegression. Always thought that it was used for one-vs-rest learning, fitting the models for binary classification in parallel. However, it also seem to do sth in the multinomial case (at least according to the verbose option). in the docstring it says<br>
<br>
>     n_jobs : int, optional<br>
>         Number of CPU cores used during the cross-validation loop. If given<br>
>         a value of -1, all cores are used.<br>
<br>
and I saw a logistic_regression_path being defined in the code. I am wondering, is this just a workaround for the LogisticRegressionCV, and should the n_jobs docstring in LogisticRegression<br>
be described as "Number of CPU cores used for model fitting” instead of “during cross-validation,” or am I getting this wrong?<br>
<br>
Best,<br>
Sebastian<br>
______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
</blockquote></div><br></div>