技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
nilearn【数据与研究】Use and maintain Nilearn, the Python neuroimaging package for Niimg/surface data, maskers, GLM, decoding, connectivity, plotting, datasets, and repository development.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves the nilearn Python package or this
Nilearn source checkout. Nilearn supports statistical learning for
neuroimaging data: Niimg and surface manipulation, signal extraction, GLM,
decoding, connectomes, decomposition, datasets, plotting, reports, and
scikit-learn-style estimators.
python -m pip install nilearn for core APIs.python -m pip install "nilearn[plotting]" when a task needs Matplotlib, Plotly, or Kaleido-backed outputs.python -c "import nilearn; import nilearn.image; import nilearn.maskers; print(nilearn.__version__)".nilearn.image,
nilearn.masking, nilearn.signal, Niimg validation, resampling,
smoothing, thresholding, direct apply_mask/unmask, and no-network image
smoke checks.NiftiMasker,
label/map/sphere maskers, multi-subject maskers, RegionExtractor,
Parcellations, ReNA, inverse transforms, and masker reports.SurfaceImage,
PolyMesh, PolyData, vol_to_surf, fsaverage helpers, and surface masker
data contracts.Decoder, SearchLight, SpaceNet/FREM, ConnectivityMeasure, group sparse
covariance, CanICA/DictLearning, and mass-univariate permutation workflows.data-io-signal for Niimg/mask/signal
validation, use maskers-regions for estimator-style extraction when needed,
then use glm-analysis or ml-decoding-connectivity.datasets-interfaces to choose safe
loaders or bounded fetchers, then route to maskers, GLM, decoding,
connectivity, or plotting based on the analysis goal.surface-workflows to validate mesh/data
shapes and plotting-reporting to choose static or interactive rendering.glm-analysis for model, contrast, and threshold
decisions; use plotting-reporting for cluster tables, HTML report output,
and headless/optional dependency failures.development-maintenance first, then route
to the user-facing sub-skill that owns the affected behavior for examples and
API expectations.fetch_* dataset functions as network/cache operations unless the
datasets sub-skill marks them as no-network local loaders.nilearn[plotting] or the task confirms Matplotlib/Plotly.fit returns self,
fitted attributes end in _, and transform or predict consumes data with
shapes described by the owning sub-skill.development-maintenance.python scripts/inspect_nilearn_environment.py --help from this skill
directory to inspect an environment for Nilearn imports, version, optional
plotting packages, and public module availability without downloading data.