Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add makifbaysal/tasktrooper --skill model-training-and-evaluationgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/makifbaysal/tasktrooper/model-training-and-evaluation)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/model-training-and-evaluation"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/model-training-and-evaluation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/model-training-and-evaluation"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/model-training-and-evaluation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.01817 |
| Opus 5.5 | $0.00018 | $0.00727 |
| Sonnet 5.5 | $0.00009 | $0.00363 |
| Haiku 4.5 | $0.00005 | $0.00182 |
Grade A, and why
model-training-and-evaluation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Training and Evaluation
Overview
A model's score is an estimate, and its quality depends on how it was estimated: the split that matches the data's structure, the baseline it is compared with, the tuning kept away from the final test, and the spread around the number. Gradient-boosted trees on tabular data are the strong default; anything more complex has to beat them on the same folds.
Core principle: every number you report answers "compared with what, measured how, and how sure" — baseline, CV scheme, spread.
1. Pick the CV scheme from the data
| Data | Splitter |
|---|---|
| Independent rows, classification | StratifiedKFold(n_splits=5, shuffle=True, random_state=seed) |
| Independent rows, regression | KFold(n_splits=5, shuffle=True, random_state=seed) |
| Repeated entities (users, patients, stores) | GroupKFold / StratifiedGroupKFold with groups= |
| Time-ordered, forecasting or scoring the future | TimeSeriesSplit(n_splits=5, gap=horizon) or a rolling-origin split by date |
| Small data (< a few thousand rows) | RepeatedStratifiedKFold for a stabler mean and spread |
The scheme mirrors production: a model that scores next month is validated on a later month than it trained on. Leakage rules apply throughout (leakage-safe-feature-engineering).
2. Baselines on the same folds
scoring = "average_precision"
baseline = cross_validate(DummyClassifier(strategy="prior"), X_train, y_train, cv=cv, scoring=scoring)
linear = cross_validate(make_linear(seed), X_train, y_train, cv=cv, scoring=scoring)
gbm = cross_validate(make_gbm(seed), X_train, y_train, cv=cv, scoring=scoring)
Always include the dummy and the simple rule from ml-problem-framing. A complex model that beats the linear one by less than the fold-to-fold spread is not better.
3. Tune inside cross-validation
Hyperparameter search runs on the training data with the same CV; the test set is not involved (rule test-set-discipline).
def objective(trial: optuna.Trial) -> float:
params = {
"learning_rate": trial.suggest_float("learning_rate", 1e-3, 0.3, log=True),
"max_leaf_nodes": trial.suggest_int("max_leaf_nodes", 15, 255, log=True),
"l2_regularization": trial.suggest_float("l2_regularization", 1e-8, 10.0, log=True),
}
return cross_val_score(make_gbm(seed, **params), X_train, y_train, cv=cv, scoring=scoring).mean()
study = optuna.create_study(direction="maximize", sampler=optuna.samplers.TPESampler(seed=seed))
study.optimize(objective, n_trials=50)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 139 lines · 45 tokens per session scan A 11c43bdded07
model-training-and-evaluation is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 1,817 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.
Other skills, from other repositories
flow-nexus-neural
Train and deploy neural networks in distributed E2B sandboxes with Flow Nexus.
agent-v3-memory-specialist
Agent skill for v3-memory-specialist - invoke with $agent-v3-memory-specialist.
agent-data-ml-model
Agent skill for data-ml-model - invoke with $agent-data-ml-model.
agent-neural-network
Agent skill for neural-network - invoke with $agent-neural-network.
agent-safla-neural
Agent skill for safla-neural - invoke with $agent-safla-neural.
agent-sona-learning-optimizer
Agent skill for sona-learning-optimizer - invoke with $agent-sona-learning-optimizer.