models-training
БесплатноБез исполняемых скриптовНе проверенFetch Nitrain architectures and train or evaluate Keras/TensorFlow or Torch/MONAI models.
от lza6★ 19 звёзд на GitHubОб этом скилле
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
fetch_architecture()andlist_architectures()for architecture discovery.fetch_pretrained()when the workflow needs pretrained network access.Trainerfor Keras/TensorFlow models.TorchTrainerfor the CPU Torch/MONAI path.- Framework detection and trainer-default behavior.
What does not belong here
- Dataset and reader construction: use
sub-skills/datasets-readers/. - Transform, sampler, and loader work: use
sub-skills/preprocessing-and-loading/. - Dataset-level prediction or explanation: use
sub-skills/prediction-and-explanation/.
Typical user requests
- "Create a U-Net or VGG architecture"
- "List available architectures"
- "Train a regression or segmentation model"
- "Use TorchTrainer with MONAI"
- "Load pretrained weights"
Working pattern
- Decide which framework the model actually uses: Keras/TensorFlow, torch, or monai-backed torch.
- Pick
task='regression',task='classification', ortask='segmentation'when you wantTrainerdefaults. - Use
LoaderorLoader.to_keras()from the preprocessing sub-skill when the data needs batching first. - Keep training smoke tests tiny and CPU-only unless the user explicitly asks for a different backend.
Read these references
- references/api-reference.md for the verified signatures and default behavior.
- references/workflows.md for model-construction and training patterns.
- references/troubleshooting.md for task 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
fetch_architecture(name, dim=None)returns a callable fromantspynet.architectures.list_architectures()returns[name, dim]pairs.Trainercompiles Keras models automatically when the framework is Keras.TorchTrainerdelegates to the torch training helpers and needs an optimizer, loss, metrics, and device.task=Noneis only valid when you also provide the optimizer and loss.
Common outcomes
- Keras models get compiled and can then call
fit,evaluate,predict,summary, andsave. - Torch models are trained through the separate helper path rather than through
model.fit. Trainerinfers the framework from the model type string.
Watch for these signals
- A
wrongtaskor missing-optimizer error usually means the trainer defaults were not selected correctly. nitrain.fetch_pretrainedis a module object in this snapshot, so the actual function lives innitrain.models.fetch_pretrained.TorchTrainerlives undernitrain.trainers, not the package root.- The Torch/MONAI path is CPU-only in the verified snapshot.
Before handing off
If the user really wants inference output post-processing, use the prediction sub-skill instead of stretching this one further.
Установить models-training в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл models-training?
Fetch Nitrain architectures and train or evaluate Keras/TensorFlow or Torch/MONAI models.
Как установить скилл models-training?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл models-training запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic