//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Then we compute region signals and extract useful phenotypic informations.
adhd_subjects = []
pooled_subjects = []
site_names = []
adhd_labels = [] // 1 if ADHD, 0 if control
for func_file, confound_file, phenotypic in zip(
After Change
// proportion of each class as in the whole cohort
from sklearn.model_selection import StratifiedKFold
_, classes = np.unique(groups, return_inverse=True)
cv = StratifiedKFold(n_splits=3)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// and use the connectivity coefficients to classify ADHD patients vs controls.