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
try overriding with giving proper argument names, in your case i believe you want to enter the no. of features hence try this-
rfe = RFE(lr,n_features_to_select=15)