executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
ml-decoding-connectivityUse Nilearn supervised decoding, searchlight, SpaceNet/FREM, connectivity, decomposition, parcellation handoffs, and mass-univariate permutation workflows safely.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a Nilearn task involves machine-learning models over brain images or extracted signals: supervised decoding/regression, searchlight maps, sparse/structured decoders, connectome features, decomposition maps, parcellation-to-connectome handoffs, or mass-univariate permutation tests.
maskers-regions; route
image cleaning/resampling to data-io-signal; route dataset/cache setup to
datasets-interfaces; route final matrix/connectome plots to
plotting-reporting.n_jobs, or expensive structured estimators.Decoder or DecoderRegressor for
image-like samples with automatic masking, screening, CV, and model maps.SearchLight when the question is spatially
local; keep radius, process_mask_img, CV, and n_jobs intentionally small
while prototyping.SpaceNetClassifier,
SpaceNetRegressor, FREMClassifier, or FREMRegressor only when spatial
regularization, clustering, or ensembling is part of the analysis goal.ConnectivityMeasure on one 2D time-series
array per subject, then feed vectorized outputs to scikit-learn pipelines.GroupSparseCovariance or
GroupSparseCovarianceCV for shared sparse precision patterns across
subjects; expect cubic scaling in the number of regions/features.CanICA, DictLearning, or
Parcellations to learn components/parcels before extracting region signals
and building connectomes.permuted_ols for massively univariate
OLS with permutation-based family-wise control; keep n_perm low for smoke
checks and high only for final inference.Run the no-network smoke script to check a local Nilearn environment and shape contracts without downloading data:
python scripts/smoke_ml_connectivity.py --help
python scripts/smoke_ml_connectivity.py
The script builds tiny synthetic subject time series, computes vectorized
tangent and correlation connectomes, trains a light classifier, and optionally
checks a small Decoder path when nibabel image support is available.