Comments (7)
Tried on version 0.1.0 and got same error with different trace
from featurewiz.
the transformer object: features = FeatureWiz(corr_limit=0.50, feature_engg='interactions', category_encoders='', dask_xgboost_flag=False, nrows=None, verbose=2)
from featurewiz.
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.
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.
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.
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.
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)
- Category type, indexes don't match on AutoEncoding HOT 3
- Issue with working with Featureviz HOT 1
- Comment has incorrect code ( verbose=0. imbalanced=False [verbose=0, imbalanced=False]) HOT 1
- make tensorflow optional HOT 4
- lazytransform.py float to integer error HOT 2
- Dealing with a Numpy array as features HOT 1
- Convert binary columns to categorical HOT 1
- featurewiz ignores category columns HOT 2
- dont show chart for more than 1000 features HOT 1
- featurewiz ignores category columns with an example HOT 5
- Universal API required for smooth working HOT 4
- wiz.tarnsform returns the same data as the train for test HOT 1
- package versions have conflicting dependencies HOT 1
- TypeError: expected string or bytes-like object on int type column name HOT 2
- Conflict Error Among Poetry Package Dependencies: lazytransform, tqdm, featurewiz HOT 8
- TYPO ERROR
- Typo Error
- Version Conflict for scikit-learn - Bump to 1.3.2 possible? HOT 1
- Can't get featurewiz to work HOT 1
- ValueError: Length mismatch: Expected axis has X elements, new values have Y elements HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from featurewiz.