rfe = RFE(lr,15)
rfe.fit(X_train,y_train)
im getting this error
TypeError Traceback (most recent call last)
<ipython-input-65-10f06de816f9> in <module>()
1 #Cut down number of features to 15 using automated approach
----> 2 rfe = RFE(lr,15)
3 rfe.fit(X_train,y_train)
TypeError: __init__() takes 2 positional arguments but 3 were given
If you see this document.
so first attribute is mandatory. rest of the attributes are optional. so you have to mention optional attribute and pass the value. lets say 15 for n_features_to_select .
So, in that case it will be