Models training

From lza6/Armor-piercing-system-prompts · View interactive version

Models training is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Fetch Nitrain architectures and train or evaluate Keras/TensorFlow or Torch/MONAI models.

How to use this skill

Skill file

Models and training

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.

What belongs here

What does not belong here

sub-skills/prediction-and-explanation/.

Typical user requests

Working pattern

  1. Decide which framework the model actually uses: Keras/TensorFlow, torch, or

monai-backed torch.

  1. Pick task='regression', task='classification', or task='segmentation'

when you want Trainer defaults.

  1. Use Loader or Loader.to_keras() from the preprocessing sub-skill when the

data needs batching first.

  1. Keep training smoke tests tiny and CPU-only unless the user explicitly asks

for a different backend.

Read these references

verified signatures and default behavior.

and training patterns.

mismatches, import quirks, and backend/version conflicts.

Smoke checks

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.

Key decisions

antspynet.architectures.

loss, metrics, and device.

Common outcomes

summary, and save.

model.fit.

Watch for these signals

were not selected correctly.

function lives in nitrain.models.fetch_pretrained.

Before handing off

If the user really wants inference output post-processing, use the prediction

sub-skill instead of stretching this one further.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.