Skip to content

Instantly share code, notes, and snippets.

@rikturr
Created February 9, 2021 19:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikturr/ca4449a87fcd512d3d846341949d1b34 to your computer and use it in GitHub Desktop.
Save rikturr/ca4449a87fcd512d3d846341949d1b34 to your computer and use it in GitHub Desktop.
sklearn-n-jobs-estimators
from sklearn.utils import all_estimators
import inspect
has_n_jobs = []
for est in all_estimators():
s = inspect.signature(est[1])
if 'n_jobs' in s.parameters:
has_n_jobs.append(est)
print(has_n_jobs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment