Here is the error I got:
user@uot-ws MINGW64 ~
$ mriqc_clf --load-classifier -X T1w.csv -o outputs\mypredictionsT1w.csv
2017-05-23 11:27:00,798 duecredit:ERROR Failed to import duecredit due to No mod
ule named 'duecredit'
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\mriqc_clf.exe\__main__.py", line 9, in
<module>
File "c:\programdata\anaconda3\lib\site-packages\mriqc\bin\mriqc_clf.py", line
106, in main
rate_label='rate')
File "c:\programdata\anaconda3\lib\site-packages\mriqc\classifier\cv.py", line
282, in __init__
raise RuntimeError('Either load_clf or X & Y should be supplied')
RuntimeError: Either load_clf or X & Y should be supplied
--
You received this message because you are subscribed to the Google Groups "mriqc-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mriqc-users+unsubscribe@googlegroups.com.
To post to this group, send email to mriqc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mriqc-users/33cf78a0-a5e8-4ade-a2d7-3be391a4d8e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mriqc-users...@googlegroups.com.
To post to this group, send email to mriqc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mriqc-users/33cf78a0-a5e8-4ade-a2d7-3be391a4d8e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mriqc-users+unsubscribe@googlegroups.com.
To post to this group, send email to mriqc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mriqc-users/4fd022a7-bcde-496b-9503-7e8d33c5fedf%40googlegroups.com.
Thanks for your reply. I tried your suggested command and am getting an error complaining that the T1w.csv file does not exist (FileNotFoundError: File b'T1w.csv' does not exist)I tried two things that gave me the same error.- pointing to the T1w.csv using its absolute path instead of the aMRIQC.csv in the command you sent- creating a /scratch directory in the $PWD directory and placing the T1w.csv file insideAny suggestions as to what I need to correct?Thanks again.
To view this discussion on the web visit https://groups.google.com/d/msgid/mriqc-users/4fd022a7-bcde-496b-9503-7e8d33c5fedf%40googlegroups.com.
--___________________________Oscar Esteban, Ph.D.
Postdoctoral Fellow, Poldrack Lab
Stanford University
To unsubscribe from this group and stop receiving emails from it, send an email to mriqc-users...@googlegroups.com.
To post to this group, send email to mriqc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mriqc-users/33cf78a0-a5e8-4ade-a2d7-3be391a4d8e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am running the latest version of mriqc (21.0.0rc2), and are trying mriqc_clf on docker.
I've tried the following command:
docker run -v $PWD:/scratch -w /scratch --entrypoint=mriqc_clf nipreps/mriqc:21.0.0rc2 --load-classifier -X group_T1w_copy.tsv
But it didn't work.
Error:
Traceback (most recent call last):
File "/opt/conda/bin/mriqc_clf", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/mriqc/bin/mriqc_clf.py", line 303, in main
cv_helper = CVHelper(
File "/opt/conda/lib/python3.8/site-packages/mriqc/classifier/helper.py", line 200, in init
self.load(load_clf)
File "/opt/conda/lib/python3.8/site-packages/mriqc/classifier/helper.py", line 716, in load
from sklearn.externals.joblib import load as loadpkl
ModuleNotFoundError: No module named 'sklearn.externals.joblib'
and I tried command: from sklearn.externals import joblib on spyder, and did't get any errors.
And I installed mriqc on a Python 3 environment and ran 'mriqc_clf --load-classifier -X group_T1w.tsv'
it didn't work o(╥﹏╥)o
Error:
Traceback (most recent call last):
File "/home/lipalab/anaconda3/bin/mriqc_clf", line 8, in <module>
sys.exit(main())
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/mriqc/bin/mriqc_clf.py", line 241, in main
cvhelper = CVHelper(
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/mriqc/classifier/helper.py", line 184, in __init__
self.load(load_clf)
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/mriqc/classifier/helper.py", line 705, in load
self._estimator = loadpkl(filehandler)
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 585, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 504, in _unpickle
obj = unpickler.load()
File "/home/lipalab/anaconda3/lib/python3.8/pickle.py", line 1210, in load
dispatch[key[0]](self)
File "/home/lipalab/anaconda3/lib/python3.8/pickle.py", line 1526, in load_global
klass = self.find_class(module, name)
File "/home/lipalab/anaconda3/lib/python3.8/pickle.py", line 1577, in find_class
__import__(module, level=0)
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/mriqc/classifier/sklearn/__init__.py", line 5, in <module>
from .cv_nested import ModelAndGridSearchCV
File "/home/lipalab/anaconda3/lib/python3.8/site-packages/mriqc/classifier/sklearn/cv_nested.py", line 34, in <module>
from sklearn.model_selection._validation import (
ImportError: cannot import name '_index_param_value' from 'sklearn.model_selection._validation' (/home/lipalab/anaconda3/lib/python3.8/site-packages/sklearn/model_selection/_validation.py)
Please give me some advice.
Many Thanks!
To view this discussion on the web visit https://groups.google.com/d/msgid/mriqc-users/de126989-087d-46c5-9900-e98b1228eb87n%40googlegroups.com.
Please give me some advice.
Many Thanks!
Best,
Wenjun