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
models-trainingFetch Nitrain architectures and train or evaluate Keras/TensorFlow or Torch/MONAI models.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a user needs to discover an architecture, fetch a
pretrained network, build a Trainer, or run the CPU TorchTrainer path.
fetch_architecture() and list_architectures() for architecture discovery.fetch_pretrained() when the workflow needs pretrained network access.Trainer for Keras/TensorFlow models.TorchTrainer for the CPU Torch/MONAI path.sub-skills/datasets-readers/.sub-skills/preprocessing-and-loading/.sub-skills/prediction-and-explanation/.task='regression', task='classification', or task='segmentation'
when you want Trainer defaults.Loader or Loader.to_keras() from the preprocessing sub-skill when the
data needs batching first.After installing dependencies, run the bundled helper scripts/check_install.py:
python scripts/check_install.py --mode models
python scripts/check_install.py --mode torch
Use the first command for Keras/TensorFlow workflows and the second for the CPU Torch/MONAI path.
fetch_architecture(name, dim=None) returns a callable from
antspynet.architectures.list_architectures() returns [name, dim] pairs.Trainer compiles Keras models automatically when the framework is Keras.TorchTrainer delegates to the torch training helpers and needs an optimizer,
loss, metrics, and device.task=None is only valid when you also provide the optimizer and loss.fit, evaluate, predict,
summary, and save.model.fit.Trainer infers the framework from the model type string.wrongtask or missing-optimizer error usually means the trainer defaults
were not selected correctly.nitrain.fetch_pretrained is a module object in this snapshot, so the actual
function lives in nitrain.models.fetch_pretrained.TorchTrainer lives under nitrain.trainers, not the package root.If the user really wants inference output post-processing, use the prediction sub-skill instead of stretching this one further.