You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: