Giter VIP home page Giter VIP logo

Comments (7)

orestmalinovskyi-digica avatar orestmalinovskyi-digica commented on May 18, 2024

Tried on version 0.1.0 and got same error with different trace

from featurewiz.

orestmalinovskyi-digica avatar orestmalinovskyi-digica commented on May 18, 2024

the transformer object: features = FeatureWiz(corr_limit=0.50, feature_engg='interactions', category_encoders='', dask_xgboost_flag=False, nrows=None, verbose=2)

from featurewiz.

orestmalinovskyi-digica avatar orestmalinovskyi-digica commented on May 18, 2024

for 0.1.7 I'm getting KeyError: "[{column names here}]" not in index"

KeyError                                  Traceback (most recent call last)
/tmp/ipykernel_273395/4235074023.py in <module>
----> 1 X_train_selected = features.fit_transform(X_train, train_df['ground_truth_corrected'])

~/anaconda3/envs/XXX/lib/python3.8/site-packages/sklearn/base.py in fit_transform(self, X, y, **fit_params)
    853         else:
    854             # fit method of arity 2 (supervised transformation)
--> 855             return self.fit(X, y, **fit_params).transform(X)
    856 
    857 

~/anaconda3/envs/XXX/lib/python3.8/site-packages/featurewiz/featurewiz.py in transform(self, X)
   3624 
   3625     def transform(self, X):
-> 3626         return X[self.features]
   3627 ###################################################################################################
   3628 import copy

~/anaconda3/envs/XXX/lib/python3.8/site-packages/pandas/core/frame.py in __getitem__(self, key)
   3462             if is_iterator(key):
   3463                 key = list(key)
-> 3464             indexer = self.loc._get_listlike_indexer(key, axis=1)[1]
   3465 
   3466         # take() does not accept boolean indexers

~/anaconda3/envs/XXX/lib/python3.8/site-packages/pandas/core/indexing.py in _get_listlike_indexer(self, key, axis)
   1312             keyarr, indexer, new_indexer = ax._reindex_non_unique(keyarr)
   1313 
-> 1314         self._validate_read_indexer(keyarr, indexer, axis)
   1315 
   1316         if needs_i8_conversion(ax.dtype) or isinstance(

~/anaconda3/envs/XXX/lib/python3.8/site-packages/pandas/core/indexing.py in _validate_read_indexer(self, key, indexer, axis)
   1375 
   1376             not_found = list(ensure_index(key)[missing_mask.nonzero()[0]].unique())
-> 1377             raise KeyError(f"{not_found} not in index")
   1378 
   1379 

from featurewiz.

AutoViML avatar AutoViML commented on May 18, 2024

Hi @orestmalinovskyi-digica 👍
I have uploaded a new version. First try to upgrade to that version.

If you still get the error KeyError: "[{column names here}]" not in index" then, I am not sure where it is coming from.

Can you please post a data snippet here (100 sample rows) from your dataset?
If not, you could point me to your notebook on a Github or Colab.
Thanks
AutoViML

from featurewiz.

orestmalinovskyi-digica avatar orestmalinovskyi-digica commented on May 18, 2024

Can't share the data due to legal issues.. but, the column names are the newly created ones (with div by, mult by, plus, minus, squared in their names). And the problem is at the transform stage (I can fit it fine in the newest versions).

I've overcome the problem by accessing column names at features.__dict__['features'] and creating new columns from what is in the returned column names.

Also my friend on Windows didn't have any errors and I'm using Ubuntu. Hope it helps somehow.

from featurewiz.

AutoViML avatar AutoViML commented on May 18, 2024

Hi @orestmalinovskyi-digica 👍
At the moment, I don't know what is causing the problem. If you posted some screenshot of the error you are getting, would be helpful and what the column names look like. If you we should close this issue.
Thanks
AutoViML

from featurewiz.

AutoViML avatar AutoViML commented on May 18, 2024

Hi @orestmalinovskyi-digica 👍
This has been fixed now. Please upgrade and check. You can re-open it as a different issue once you share screen shots of the error to help us troubleshoot.
Thanks
AutoViML

from featurewiz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.