f816b2d21de51ea97a45d8cbece6a528848c56e4,examples/03_connectivity/plot_compare_decomposition.py,,,#,33
Before Change
names = {dict_learning: "DictionaryLearning", canica: "CanICA"}
estimators = [canica, dict_learning]
components_imgs = [canica_components_img, dictlearning_components_img]
// Selecting specific maps to display: maps were manually chosen to be similar
indices = {dict_learning: 8, canica: 14}
// We select relevant cut coordinates for displaying
cut_component = index_img(components_imgs[0], indices[dict_learning])
cut_coords = find_xyz_cut_coords(cut_component)
for estimator, components in zip(estimators, components_imgs):
// 4D plotting
plot_prob_atlas(components, view_type="filled_contours",
title="%s" % names[estimator],
cut_coords=cut_coords, colorbar=False)
// 3D plotting
plot_stat_map(index_img(components, indices[estimator]),
title="%s" % names[estimator],
cut_coords=cut_coords, colorbar=False)
show()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// .. note::
//
After Change
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// One plot of each component
for i, cur_img in enumerate(iter_img(dictlearning_components_img)):
plot_stat_map(cur_img, display_mode="z", title="Comp %d" % i,
cut_coords=1, colorbar=False)
show()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// .. note::
//
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: nilearn/nilearn
Commit Name: f816b2d21de51ea97a45d8cbece6a528848c56e4
Time: 2019-04-18
Author: gael.varoquaux@normalesup.org
File Name: examples/03_connectivity/plot_compare_decomposition.py
Class Name:
Method Name:
Project Name: nilearn/nilearn
Commit Name: 989ee60856e201cb7bdd0c6c585834e18d528046
Time: 2019-04-16
Author: jacobwvogel@gmail.com
File Name: examples/03_connectivity/plot_compare_decomposition.py
Class Name:
Method Name:
Project Name: nilearn/nilearn
Commit Name: 45dfe409dfbd666d807ed62d025cb5ebaa911a43
Time: 2015-01-31
Author: danilobzdok@gmail.com
File Name: examples/connectivity/plot_canica_resting_state.py
Class Name:
Method Name: