N_jobs in sklearn LinearRegression
I am getting an error when passing the n_jobs variable to LinearRegression to sklearn.
According to the documentation, it should support the n_jobs variable.
Am I wrong?
>>> sk.__version__
'0.16-git'
>>> from sklearn.linear_model import LinearRegression
>>> LinearRegression(fit_intercept=True, normalize=False, copy_X=True, n_jobs=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() got an unexpected keyword argument 'n_jobs'
>>> LinearRegression(fit_intercept=True, normalize=False, copy_X=True)
LinearRegression(copy_X=True, fit_intercept=True, normalize=False)
>>>
+3
source to share