Hi all,
I am using Nilearn.decompositions DictLearning (6.4. Region Extraction for better brain parcellations - Nilearn) to run an ICA but failed while running dict_learn.fit(func_filenames)
, errors see below.
Traceback (most recent call last):
File "/var/folders/xx/9wp086tx1nnbfntx9631wc1h0000gn/T/ipykernel_3807/1321688823.py", line 21, in <module>
dict_learn.fit(func_filenames)
File "/Users/jd/opt/anaconda3/lib/python3.9/site-packages/nilearn/decomposition/_base.py", line 448, in fit
self._raw_fit(data)
File "/Users/jd/opt/anaconda3/lib/python3.9/site-packages/nilearn/decomposition/dict_learning.py", line 306, in _raw_fit
self.components_, _ = self._cache(dict_learning_online)(
File "/Users/jd/opt/anaconda3/lib/python3.9/site-packages/joblib/memory.py", line 573, in __call__
return self._cached_call(args, kwargs, shelving=False)
File "/Users/jd/opt/anaconda3/lib/python3.9/site-packages/joblib/memory.py", line 482, in _cached_call
args_id = self._get_args_id(*args, **kwargs)
File "/Users/jd/opt/anaconda3/lib/python3.9/site-packages/joblib/memory.py", line 612, in _get_args_id
return hashing.hash(filter_args(self.func, self.ignore, args, kwargs),
File "/Users/jd/opt/anaconda3/lib/python3.9/site-packages/joblib/func_inspect.py", line 306, in filter_args
raise TypeError("Ignore list for %s() contains an unexpected "
TypeError: Ignore list for dict_learning_online() contains an unexpected keyword argument 'max_iter'
I would appreciate it if you know the potential solution!
Thank you