kaggle-submission-format-by-metric

kaggle-submission-format-by-metric is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 193 tokens per session (2,357 once invoked), scanned A, original, MIT.

A guide for creating Kaggle competition submission files that match how the competition scores predictions. For ranking metrics such as AUC or log loss, it distinguishes probability scores from final yes-or-no labels.

In plain words
What is it for?
Use it when exporting predictions for Kaggle, especially for classification competitions scored with probabilities, rankings, or other continuous values.
Why use it?
A model can perform well in testing but receive a poor leaderboard score if its predictions are rounded or formatted incorrectly.

Skill for Claude CodeCodex

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

Good fit Use it when exporting predictions for Kaggle, especially for classification competitions scored with probabilities, rankings, or other continuous values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric
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 topprismdata/cultivating-ml-agent --skill kaggle-submission-format-by-metric
Clone the repo
git clone --depth 1 https://github.com/topprismdata/cultivating-ml-agent

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 kaggle-submission-format-by-metric

README.md
[![agentmods](https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric/github.svg)](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric)
Your own site
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric/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 kaggle-submission-format-by-metric

Your own site · 80×15
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/kaggle-submission-format-by-metric.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,357 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.00193 $0.02357
Opus 5 $0.00097 $0.01179
Sonnet 5 $0.00039 $0.00471
Haiku 4.5 $0.00019 $0.00236

Measured 12d ago against content hash 31cfbf2057f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

kaggle-submission-format-by-metric 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 12d 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.

skills/examples/kaggle-submission-format-by-metric/SKILL.md · 209 lines

How it starts

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

Match Submission Format to Evaluation Metric

Problem

A perfect model can score near-random on the public leaderboard if the submission file format doesn't match the metric's expectations. The most common mistake: submitting 0/1 thresholded labels for a metric that needs continuous probabilities.

Real failure case (2026-06-14, S6E2 Heart Disease):

  • Model: AutoGluon best_quality ensemble, OOF AUC 0.95554
  • Submission A: submission_autogluon.csv (0/1 thresholded via predictor.predict())
    • Public LB: 0.88403 ❌ (looked like complete model failure)
    • Private LB: 0.88643
  • Submission B: submission_autogluon_proba.csv (continuous via predictor.predict_proba())
    • Public LB: 0.95357
    • Private LB: 0.95510
  • Same model, same OOF — only the submission format differed. 0.07 LB drop from thresholding alone.

Context / Trigger Conditions

Use this skill when:

  • About to submit the final (or any) prediction to a Kaggle competition
  • AutoGluon / sklearn / xgboost default predict() returns hard labels for classification
  • Competition metric is ranking-based (see list below)
  • CV score is great but LB score is suspiciously low
  • You see sample_submission.csv with 0.0/1.0 values (those are the target format, NOT necessarily the submission format)

DO NOT threshold for ranking-based metrics:

  • roc_auc, auc — area under ROC; needs continuous scores
  • auc_mu — multi-class AUC; needs full probability matrix
  • log_loss — penalizes confident wrong answers; needs probabilities
  • MAP, NDCG — ranking metrics; need scores
  • brier_score — squared error on probabilities
  • mean_columnwise_auc — column-wise AUC
  • rmse on log-target (RMSLE) — for log-transformed regression, submit log predictions directly

DO threshold (or round) for these metrics:

  • accuracy — predicted class label
  • f1, precision, recall — predicted class label
  • quadratic_kappa — rounded integer (for ordinal)
  • mae, rmse on raw target — continuous regression predictions are fine, but rounding is harmless

Read the full file on GitHub · 209 lines

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. 12d ago First seen · 209 lines · 193 tokens per session scan A 31cfbf2057f5

Subscribe to this mod's changes

kaggle-submission-format-by-metric is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 15d ago), licensed MIT. It adds 193 tokens to every session and 2,357 once invoked, about $0.0010 per session on Opus 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-31.

Related

Other skills, from other repositories