Skip to content

Commit 34b0eb5

Browse files
committed
high pass filter for dictionary learning; improved accuacy
1 parent 928e637 commit 34b0eb5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

content/gcn_decoding.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ from nilearn.decomposition import DictLearning
8282
8383
# Initialize DictLearning object
8484
dict_learn = DictLearning(n_components=20, smoothing_fwhm=6.,
85+
low_pass=0.1, high_pass=0.01, t_r=2,
86+
detrend=True, standardize=True,
8587
memory="nilearn_cache", memory_level=2,
8688
random_state=0)
8789
# Fit to the data
@@ -122,7 +124,8 @@ from nilearn.regions import RegionExtractor
122124
extractor = RegionExtractor(components_img, threshold=0.5,
123125
thresholding_strategy='ratio_n_voxels',
124126
extractor='local_regions',
125-
standardize=True)
127+
low_pass=0.1, high_pass=0.01, t_r=2,
128+
detrend=True, standardize=True)
126129
# Just call fit() to process for regions extraction
127130
extractor.fit()
128131
# Extracted regions are stored in regions_img_

0 commit comments

Comments
 (0)