Skip to content

problems using featurewiz in a pipeline #129

Closed
@sdaza

Description

@sdaza

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions