You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scikit learn added compatibility for pandas dataframe with the set_output API update. I have sklearn pipelines in my project that uses pyod models. When fitting/predicting, the following warning is triggered:
UserWarning: X has feature names, but IsolationForest was fitted without feature names
The IForest.fit method does not actually pass the pandas dataframe to the underlying IsolationForest but the associated numpy array. The line of code X = check_array(X) is responsible for the conversion.
Scikit learn added compatibility for pandas dataframe with the set_output API update. I have sklearn pipelines in my project that uses pyod models. When fitting/predicting, the following warning is triggered:
The IForest.fit method does not actually pass the pandas dataframe to the underlying IsolationForest but the associated numpy array. The line of code
X = check_array(X)
is responsible for the conversion.Here is a reproducible example:
Any ideas on how to address this issue ?
The text was updated successfully, but these errors were encountered: