Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fit/transform API not working #123

Open
jonathanhexner opened this issue Dec 12, 2024 · 2 comments
Open

fit/transform API not working #123

jonathanhexner opened this issue Dec 12, 2024 · 2 comments

Comments

@jonathanhexner
Copy link

Hi,

I'm getting the following error:
Python38\site-packages\featurewiz\featurewiz.py", line 3405, in transform
print('Returning dataframe with %d features ' %len(self.features))
TypeError: object of type 'NoneType' has no len()

It seems self.features gets used before being properly configured

@jonathanhexner
Copy link
Author

Thanks. That indeed helped however something is still problematic, it's not going the feature engineering\selection:

feature_wiz = FeatureWiz(feature_engg=['groupby', 'target', 'interactions'], nrows=None,
transform_target=True, scalers="std",
category_encoders="auto", add_missing=False, verbose=0, imbalanced=False,
corr_limit=self.corr_limit,
ae_options={})
feature_wiz.fit(X, y)

when I do feature_wiz.transform(X), I get:

Starting featurewiz transform for test data

Loaded input data. Shape = (112560, 15)
Beware! feature_engg will add 100s, if not 1000s of additional features to your dataset!

Starting lazytransform for test data

LazyTransformer has not been fit yet. Fit it first and try again.
Returning dataframe with 0 features
Returning dataframe with all features since error in feature selection...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@jonathanhexner and others