tabular-polynomial-features-breakthrough

tabular-polynomial-features-breakthrough is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 118 tokens per session (4,111 once invoked), scanned A, original, MIT.

A method for adding polynomial features to small table-based machine-learning datasets. It creates extra features that represent combinations of existing values, helping models detect relationships between them.

In plain words
What is it for?
Use it to test polynomial feature engineering on datasets with fewer than 10,000 rows and 50 features, when feature interactions are suspected.
Why use it?
It addresses cases where tuning and ensembles stop improving a tree-based model, especially when important feature interactions are not being captured.

Skill for Claude CodeCodex

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

Good fit Use it to test polynomial feature engineering on datasets with fewer than 10,000 rows and 50 features, when feature interactions are suspected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/tabular-polynomial-features
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 tabular-polynomial-features
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 tabular-polynomial-features-breakthrough

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/tabular-polynomial-features"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/tabular-polynomial-features.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,111 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.00118 $0.04111
Opus 5 $0.00059 $0.02056
Sonnet 5 $0.00024 $0.00822
Haiku 4.5 $0.00012 $0.00411

Measured 7d ago against content hash 06d7f72c87ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tabular-polynomial-features-breakthrough 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 7d 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/tabular-polynomial-features/SKILL.md · 437 lines

How it starts

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

Tabular Polynomial Features Breakthrough

Problem

After exhausting standard optimization techniques (hyperparameter tuning, ensembling), small tabular datasets often hit a performance plateau. Conventional wisdom suggests tree-based models like XGBoost should capture non-linear patterns natively, but this isn't always true for feature interactions.

Context / Trigger Conditions

Use this skill when:

  • Small dataset: <10K samples, <50 original features
  • Baseline plateau: After hyperparameter tuning, improvements are <0.005
  • Tree models underperform: XGBoost/LightGBM scores lower than expected
  • Feature interactions suspected: Domain knowledge suggests features combine non-linearly
  • Model optimization exhausted: Grid search, Optuna yield minimal gains

Red flags that polynomial features may help:

Baseline XGBoost:           F1 = 0.687, LB = 0.805
Grid Search (depth=8):      F1 = 0.686, LB = 0.810  (+0.005) ← Diminishing returns
Ensemble (3 models):        F1 = 0.688, LB = 0.815  (+0.010) ← Minimal gain
Feature Selection (Top 10): F1 = 0.692, LB = 0.819  (+0.014) ← But high gap!

What this solves:

  • Captures explicit feature interactions (x₁×x₂, x₁×x₃, etc.)
  • Provides non-linear decision boundaries without complex model architectures
  • Outperforms model tuning on small datasets where data > model complexity

Solution

Step 1: Standardize Features First

Critical: Polynomial features are scale-sensitive. Always standardize before expansion.

from sklearn.preprocessing import StandardScaler, PolynomialFeatures
import pandas as pd

# Load data
X_train = train_df.drop(columns=['target', 'id'])
X_test = test_df.drop(columns=['id'])
y_train = train_df['target']

print(f"Original features: {X_train.shape[1]}")  # e.g., 16

# Step 1: Standardize
scaler = StandardScaler()
X_train_scaled = scaler.fit_transform(X_train)
X_test_scaled = scaler.transform(X_test)

Step 2: Generate Degree-2 Polynomial Features

Read the full file on GitHub · 437 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. 7d ago First seen · 437 lines · 118 tokens per session scan A 06d7f72c87ba

Subscribe to this mod's changes

tabular-polynomial-features-breakthrough is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 13d ago), licensed MIT. It adds 118 tokens to every session and 4,111 once invoked, about $0.0006 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-09-03.

Related

Other skills, from other repositories

huggingface-hub

Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.

braxtonROSE4/zorro-agent · 43 tokens

tensorboard

Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit.

davila7/claude-code-templates · 32 tokens

mlflow

Track ML experiments, manage model registry with versioning, deploy models to production, and reproduce experiments with MLflow - framework-agnostic ML lifecycle platform.

davila7/claude-code-templates · 33 tokens

datachain-knowledge

Use whenever datasets, cloud storage buckets, or data pipelines are mentioned — creating, saving, querying, listing, exploring, deleting, or processing data in S3, GCS, Azure Blob, or local storage. Also use when running any script that may create datasets as a side effect. Maintains a knowledge base at dc-knowledge/…

datachain-ai/datachain · 104 tokens

prompt-scanner

A scanner for text sent to an AI agent, looking for prompt injection and jailbreak attempts. Prompt injection is text that tries to override an agent's instructions; a jailbreak tries to bypass its safety limits.

alibaba/anolisa · 103 tokens

install-openviking-memory

Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures facts from chats and recalls relevant context before each reply (auto-capture + auto-recall, cross-session). Covers prerequisites, install through OpenClaw's plugin…

volcengine/OpenViking · 191 tokens