天天看點

nilearn學習 | 基于字典分解的全腦功能連接配接體

  • 記錄人:陳亦新
#導入庫函數
from nilearn import datasets
from nilearn.decomposition import DictLearning
from nilearn import plotting
#下載下傳資料集
rest_dataset = datasets.fetch_development_fmri(n_subjects = 20)
# 建構字典分解的執行個體
dict_learn = DictLearning(n_components=8,smoothing_fwhm=6.,
                         memory="nilearn_cache",memory_level=2,
                         random_state=0)
dict_learn.fit(rest_dataset["func"])
# 可視化字典分解的結果
plotting.plot_prob_atlas(dict_learn.components_img_,view_type="filled_contours",
                         title="Dictionary Learning maps")      
nilearn學習 | 基于字典分解的全腦功能連接配接體

繼續閱讀