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

mriqc classification is complaining about the dimensions #11

Open
Vincent-wq opened this issue Feb 11, 2020 · 0 comments
Open

mriqc classification is complaining about the dimensions #11

Vincent-wq opened this issue Feb 11, 2020 · 0 comments

Comments

@Vincent-wq
Copy link

Vincent-wq commented Feb 11, 2020

Hi, @oesteban @dbirman
I have finished mriqc on my small dataset (64 subjects), when I am running
mriqc_clf --load-classifier -X /proj/Abbas_dataset_raw_BIDS_MRIQC/group_T1w.tsv
the data is 65(64+defaut column names)*69
using the most recent version docker image (singularity develop folder), it is complaiing the dimensions, do you have any idea why this may happen? below is the error message.
/usr/local/miniconda/lib/python3.7/site-packages/sklearn/utils/__init__.py:4: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Sequence /usr/local/miniconda/lib/python3.7/site-packages/sklearn/ensemble/weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release. from numpy.core.umath_tests import inner1d Traceback (most recent call last): File "/usr/local/miniconda/bin/mriqc_clf", line 10, in <module> sys.exit(main()) File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/bin/mriqc_clf.py", line 199, in main thres=opts.threshold) File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/classifier/helper.py", line 517, in predict_dataset prob_y, pred_y = self.predict(_xeval[columns]) File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/classifier/helper.py", line 487, in predict proba = np.array(self._estimator.predict_proba(X)) File "/usr/local/miniconda/lib/python3.7/site-packages/sklearn/utils/metaestimators.py", line 115, in <lambda> out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs) File "/usr/local/miniconda/lib/python3.7/site-packages/sklearn/pipeline.py", line 356, in predict_proba Xt = transform.transform(Xt) File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/classifier/sklearn/preprocessing.py", line 212, in transform new_x[new_x.columns[self.ftmask_]], y) File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/classifier/sklearn/preprocessing.py", line 165, in transform X.ix[:, colmask]) File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/indexing.py", line 139, in __getitem__ return self._getitem_tuple(key) File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/indexing.py", line 808, in _getitem_tuple retval = getattr(retval, self.name)._getitem_axis(key, axis=i) File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/indexing.py", line 1008, in _getitem_axis return self._getitem_iterable(key, axis=axis) File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/indexing.py", line 1114, in _getitem_iterable key = check_bool_indexer(labels, key) File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/indexing.py", line 2399, in check_bool_indexer "Item wrong length {} instead of {}.".format(len(result), len(index)) IndexError: Item wrong length 36 instead of 37.

@oesteban oesteban transferred this issue from nipreps/mriqc Mar 13, 2022
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

1 participant