I encountered an error while using BorutaPy with a LogisticRegression model. The issue arises when setting the n_estimators parameter to 'auto' in BorutaPy. The LogisticRegression model does not have the n_estimators parameter, which causes a ValueError. My understanding is that BorutaPy is trying to provide specific arguments to the estimator model that are not present in the LogisticRegression model.
Steps to Reproduce:
Install the necessary libraries:
from BorutaPy import BorutaPy
from sklearn.linear_model import LogisticRegression
# Assuming you have x_train_rfe and y_train defined
bl_model_ob = LogisticRegression(random_state=1)
boruta_selection = BorutaPy(bl_model_ob, n_estimators='auto', verbose=2, random_state=1)
boruta_selection.fit(x_train_rfe, y_train)
I encountered an error while using BorutaPy with a LogisticRegression model. The issue arises when setting the n_estimators parameter to 'auto' in BorutaPy. The LogisticRegression model does not have the n_estimators parameter, which causes a ValueError. My understanding is that BorutaPy is trying to provide specific arguments to the estimator model that are not present in the LogisticRegression model.
Steps to Reproduce: Install the necessary libraries:
Bash
Python
Behavior: Errore
Additional Information:
Python Version: 3.9.12 Operating System: Windows