Open Rahimlou opened 1 year ago
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. on line 1885 I changed the following: feature_names = np.asarray(X.columns, dtype=object) to feature_names = np.asarray(X.columns.astype(str), dtype=object) The value error that you pasted said to do that in such case. It worked, got another error, but it is not connected to this one. Hope it helps!
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 https://github.com/BinPro/CONCOCT/issues/321#issuecomment-1373775878
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.
warnings.warn(
Traceback (most recent call last):
File "/root/anaconda3/envs/concoct_env/bin/concoct", line 90, in
Have you ever got this error before?
thanks, worked for me :)
I solved it by installing scikit-learn inside concoct_env conda install -c intel scikit-learn
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. on line 1885 I changed the following: feature_names = np.asarray(X.columns, dtype=object) to feature_names = np.asarray(X.columns.astype(str), dtype=object) The value error that you pasted said to do that in such case. It worked, got another error, but it is not connected to this one. Hope it helps!
thanks, I have fixed this error by using this way
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. on line 1885 I changed the following: feature_names = np.asarray(X.columns, dtype=object) to feature_names = np.asarray(X.columns.astype(str), dtype=object) The value error that you pasted said to do that in such case. It worked, got another error, but it is not connected to this one. Hope it helps!
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.