Created
February 9, 2021 19:47
-
-
Save rikturr/ca4449a87fcd512d3d846341949d1b34 to your computer and use it in GitHub Desktop.
sklearn-n-jobs-estimators
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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