model-training

model-training is a skill for Claude Code, Codex from bdiasti/maestro-bundle-cli. It costs 52 tokens per session (1,472 once invoked), scanned A, original, MIT.

A guide to training and comparing machine-learning classifiers or regressors with scikit-learn, including data preparation, cross-validation, tuning, and evaluation.

In plain words
What is it for?
Use it to build complete pipelines, run cross-validation, tune parameters with GridSearchCV or RandomizedSearchCV, compare against simple baselines, evaluate results, and save models with joblib.
Why use it?
It provides a repeatable way to test models and choose settings using held-out data instead of relying on a single training result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build complete pipelines, run cross-validation, tune parameters with GridSearchCV or RandomizedSearchCV, compare against simple baselines, evaluate results, and save models with joblib.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bdiasti/maestro-bundle-cli/model-training
Install

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.

Any agent
npx skills add bdiasti/maestro-bundle-cli --skill model-training
Clone the repo
git clone --depth 1 https://github.com/bdiasti/maestro-bundle-cli

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for model-training

README.md
[![agentmods](https://agentmods.dev/badge/skills/bdiasti/maestro-bundle-cli/model-training/github.svg)](https://agentmods.dev/skills/bdiasti/maestro-bundle-cli/model-training)
Your own site
<a href="https://agentmods.dev/skills/bdiasti/maestro-bundle-cli/model-training"><img src="https://agentmods.dev/badge/skills/bdiasti/maestro-bundle-cli/model-training/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.

agentmods 80×15 button for model-training

Your own site · 80×15
<a href="https://agentmods.dev/skills/bdiasti/maestro-bundle-cli/model-training"><img src="https://agentmods.dev/badge/skills/bdiasti/maestro-bundle-cli/model-training.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01472
Opus 5.5 $0.00021 $0.00589
Sonnet 5.5 $0.00010 $0.00294
Haiku 4.5 $0.00005 $0.00147

Measured 2mo ago against content hash fe1c354c33e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

model-training 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 2mo 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.

templates/bundle-data-pipeline/skills/model-training/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model Training

Train, evaluate, and export ML models using scikit-learn pipelines with proper cross-validation and hyperparameter tuning.

When to Use

  • User wants to train a classification or regression model
  • User needs cross-validation scores for model selection
  • User wants to tune hyperparameters with GridSearch or RandomizedSearch
  • User needs to compare a model against a baseline
  • User wants to save a trained model for deployment

Available Operations

  1. Build a full sklearn Pipeline (preprocessing + model)
  2. Run cross-validation with multiple scoring metrics
  3. Tune hyperparameters with GridSearchCV or RandomizedSearchCV
  4. Evaluate on held-out test set with classification_report / regression metrics
  5. Compare against baseline (DummyClassifier/DummyRegressor)
  6. Save the best model with joblib

Multi-Step Workflow

Step 1: Install Dependencies

pip install scikit-learn pandas numpy joblib

Step 2: Load Prepared Data

import pandas as pd
from sklearn.model_selection import train_test_split

df = pd.read_parquet("data/processed/dataset_clean.parquet")
X = df.drop(columns=["target"])
y = df["target"]

X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.2, random_state=42, stratify=y  # stratify for classification
)
print(f"Train: {X_train.shape}, Test: {X_test.shape}")
print(f"Class distribution:\n{y_train.value_counts(normalize=True)}")

Step 3: Build Preprocessing + Model Pipeline

from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from sklearn.compose import ColumnTransformer
from sklearn.ensemble import RandomForestClassifier

numeric_features = ["age", "salary", "experience"]
categorical_features = ["department", "role"]

preprocessor = ColumnTransformer(
    transformers=[
        ("num", StandardScaler(), numeric_features),
        ("cat", OneHotEncoder(handle_unknown="ignore"), categorical_features),
    ]
)

pipeline = Pipeline([
    ("preprocessor", preprocessor),
    ("classifier", RandomForestClassifier(random_state=42)),
])

Read the full file on GitHub · 188 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago First seen · 188 lines · 52 tokens per session scan A fe1c354c33e0

Subscribe to this mod's changes

model-training is a skill published in the GitHub repository bdiasti/maestro-bundle-cli (22 stars, last pushed 7mo ago), licensed MIT. It adds 52 tokens to every session and 1,472 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-08-30.

Related

model-training compared with skills from other repositories

model-training next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-trainingbdiasti/maestro-bundle-cliSkill227mo agoMITA52Claude Code, Codex
arboretoK-Dense-AI/scientific-agent-skillsSkill57k4d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill57k4d agoMITA70Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill57k4d agoMITA64Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill57k4d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill4.0ktodayApache-2.0A56Claude Code
evo2aipoch/open-scienceSkill5.5ktodayApache-2.0A83Claude Code, Codex