-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feature names are only supported if all input features have string names #322
Comments
Receiving the same error. Can't seem to debug it. Would appreciate someone looking at this. |
Hi, I was able to workaround the issue by opening the validation.py file. In my case (concoct installed with conda) the file was in miniconda3/envs/concoct/lib/python3.10/site-packages/sklearn/utils/validation.py. |
I got the same error too. Have you fixed this problem? |
Thanks @maddne! Seems like a promising step towards fixing it. If you or @timeresistance1996 are still encountering errors and need a quick solution, vinisalazar's custom conda environment worked for me with no errors. Here's a link to it #321 (comment) |
Thank you so much! @jpalmer37 I have create a new conda env with #321mentioned, but run with a new error,which is, /root/anaconda3/envs/concoct_env/lib/python3.10/site-packages/sklearn/utils/validation.py:1858: FutureWarning: Feature names only support names that are all strings. Got feature names with dtypes: ['int', 'str']. An error will be raised in 1.2. Have you ever got this error before? |
thanks, worked for me :) |
I solved it by installing scikit-learn inside concoct_env |
thanks, I have fixed this error by using this way |
Worked for me too!!! thanks for posting this up!!!! :)) |
Hello,
I receive the following error running concoct. I can't understand which file is problematic and how should I solve it.
TypeError: Feature names are only supported if all input features have string names, but your input has ['int', 'str'] as feature name / column name types. If you want feature names to be stored and validated, you must convert them all to strings, by using X.columns = X.columns.astype(str) for example. Otherwise you can remove feature / column names from your input data, or convert them all to a non-string data type.
The text was updated successfully, but these errors were encountered: