Module Expr Str Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Str keyword Num Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIn SubscriptLoad NameLoad Index Str ListLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Import alias Assign NameStore ListLoad Str Str Str Assign NameStore Dict Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr keyword Num Import alias identifier Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad NameLoad keyword Str keyword NameLoad ImportFrom alias ImportFrom alias alias Assign NameStore ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Print Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad keyword Num For NameStore NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword Str Print BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Import alias identifier Expr Call AttributeLoad NameLoad attr keyword TupleLoad Num Num Assign NameStore BinOpAdd BinOpMult Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Num Assign NameStore ListComp Call AttributeLoad NameLoad attr Str Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
Comparing different functional connectivity measures
====================================================

This example compares different measures of functional connectivity between
regions of interest : correlation, partial correlation, as well as a measure
called tangent. The resulting connectivity coefficients are used to
classify ADHD vs control subjects and the tangent measure outperforms the
standard measures.

 N/A nilearn.datasets N/A atlas N/A N/A N/A nilearn datasets fetch_atlas_msdl N/A dataset N/A N/A N/A nilearn datasets fetch_adhd n_subjects 30 N/A nilearn.input_data N/A masker N/A N/A N/A nilearn input_data NiftiMapsMasker N/A atlas maps resampling_target maps detrend True low_pass None high_pass None t_r 2.5 standardize False memory nilearn_cache memory_level 1 N/A subjects N/A N/A sites N/A N/A adhds N/A N/A N/A func_file phenotypic N/A zip N/A dataset func N/A dataset phenotypic N/A N/A N/A N/A phenotypic N/A site N/A "NYU" "OHSU" "NeuroImage" N/A N/A time_series N/A N/A masker fit_transform func_file N/A N/A N/A subjects append time_series N/A N/A N/A sites append N/A phenotypic N/A site N/A N/A N/A adhds append N/A phenotypic N/A adhd N/A nilearn.connectome N/A kinds N/A tangent partial correlation correlation N/A individual_connectivity_matrices N/A N/A mean_connectivity_matrix N/A N/A kind kinds N/A N/A conn_measure N/A N/A N/A nilearn connectome ConnectivityMeasure kind kind N/A N/A individual_connectivity_matrices N/A kind N/A N/A conn_measure fit_transform subjects N/A N/A kind tangent N/A N/A N/A mean_connectivity_matrix N/A kind N/A conn_measure mean_ N/A N/A N/A mean_connectivity_matrix N/A kind N/A N/A N/A individual_connectivity_matrices N/A kind mean axis 0 N/A numpy np N/A nilearn.plotting N/A labels N/A atlas labels N/A region_coords N/A atlas region_coords N/A kind kinds N/A N/A N/A N/A N/A nilearn plotting plot_connectome N/A mean_connectivity_matrix N/A kind region_coords edge_threshold 98% title kind sklearn.svm LinearSVC sklearn.cross_validation StratifiedKFold cross_val_score N/A classes N/A N/A N/A {0}{1} format site adhd N/A N/A site adhd N/A zip sites adhds N/A Classification accuracy: N/A mean_scores N/A N/A cv N/A StratifiedKFold classes n_folds 3 N/A kind kinds N/A N/A svc N/A LinearSVC N/A coonectivity_coefs N/A N/A N/A nilearn connectome sym_to_vec N/A individual_connectivity_matrices N/A kind N/A cv_scores N/A cross_val_score svc coonectivity_coefs adhds cv cv scoring accuracy N/A N/A %20s score: %1.2f +- %1.2f N/A kind N/A N/A cv_scores mean N/A N/A cv_scores std N/A N/A N/A mean_scores append N/A N/A cv_scores mean N/A matplotlib.pyplot plt N/A N/A N/A plt figure figsize N/A 6 4 N/A positions N/A N/A N/A N/A np arange N/A len kinds 0.1 0.1 N/A N/A N/A plt barh positions mean_scores align center height 0.05 N/A yticks N/A N/A N/A kind replace N/A kind kinds N/A N/A N/A plt yticks positions yticks N/A N/A N/A plt xlabel Classification accuracy N/A N/A N/A plt grid True N/A N/A N/A plt tight_layout N/A N/A N/A plt show