ワンクリックで
pytorch-training
Best practices for building robust PyTorch training loops. Use when generating or reviewing ML training code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Best practices for building robust PyTorch training loops. Use when generating or reviewing ML training code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run Flux Balance Analysis (FBA) and related constraint-based simulations using COBRApy. Covers standard FBA, parsimonious FBA (pFBA), Flux Variability Analysis (FVA), loopless FBA, gene/reaction knockouts, and carbon source swapping. Outputs flux distributions and CSV files.
Analyse FBA flux distributions to extract biological insights. Covers gene essentiality, phenotypic phase planes, flux sampling, pathway-level aggregation, secretion product prediction, and production of publication- quality figures.
Build or load a genome-scale metabolic model (GSMM) using COBRApy. Covers loading from BIGG, constructing minimal models from scratch, setting medium constraints, and exporting validated .json model files.
Validate a COBRApy genome-scale metabolic model for mass/charge balance, stoichiometric consistency, biomass producibility, dead-end metabolites, thermodynamic loops, and GPR rule formatting. Outputs a structured validation report with errors and warnings.
Plan publishable constraint-based metabolic modelling studies when the user has a broad biological or metabolic-engineering topic but no concrete dataset, organism, model, or hypothesis. Selects feasible BiGG/COBRA models, objectives, perturbations, analyses, metrics, figures, and risk controls before FBA code is generated.
Orchestrate the full metabolic flux analysis pipeline from model loading to phenotype prediction and publication figures. Triggers when the user provides an organism name, BIGG model ID, or custom reaction list and wants end-to-end metabolic modelling run automatically.
| name | pytorch-training |
| description | Best practices for building robust PyTorch training loops. Use when generating or reviewing ML training code. |
| metadata | {"category":"tooling","trigger-keywords":"training,pytorch,torch,deep learning,neural network,model","applicable-stages":"10,12","priority":"3","version":"1.0","author":"researchclaw","references":"PyTorch Performance Tuning Guide, pytorch.org","code-template":"import torch\nimport torch.nn as nn\nfrom torch.utils.data import DataLoader\n\n# Reproducibility\ntorch.manual_seed(seed)\ntorch.cuda.manual_seed_all(seed)\ntorch.backends.cudnn.deterministic = True\n\n# Training loop\nmodel.train()\nfor epoch in range(num_epochs):\n for batch in train_loader:\n optimizer.zero_grad(set_to_none=True)\n loss = criterion(model(batch['input']), batch['target'])\n loss.backward()\n torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)\n optimizer.step()\n scheduler.step()\n"} |