-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python] Changing n_jobs
through scikit-learn interface has no effect
#4706
Comments
Example: # ... beginning is the same as in the example above
model.set_params(n_jobs=1)
model = model.fit(X_long, np.arange(X_long.shape[0])) # note that `n_jobs=1` is respected here For the prediction stage, you should pass # ... beginning is the same as in the example above
pred = model.predict(X_long, n_jobs=1) Duplicate of #1723 (comment). |
@StrikerRUS This is by the way not mentioned in the docs. There is a section about core parameters which are mostly about training which mentions Would be helpful to have it described in the scikit-learn class docs themselves that the prediction Also would be ideal for the scikit-learn interface to mimic scikit-learn itself, in which changing |
I think I agree with you. |
n_jobs
through scikit-learn interface has no effectn_jobs
through scikit-learn interface has no effect
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
If I set
n_jobs
in a fitted lightgbm model through the scikit-learn interface, the change has no effect.Example:
Now start watching the resource usage for the process and run this:
The text was updated successfully, but these errors were encountered: