Closed
Description
Hi, I'm trying to use featurewiz in a pipeline, but it doesn't seem to be working.
from featurewiz import FeatureWiz
from sklearn.pipeline import Pipeline
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
pipeline = Pipeline([('fw', FeatureWiz()),('model', RandomForestClassifier())])
# %%
pipeline.fit(X_train, y_train)
I got this error:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (2, 209334) + inhomogeneous part.
The training data is just two columns (numeric), and the target binary (0/1).
Thanks!
Metadata
Metadata
Assignees
Labels
No labels