Skip to content
Back to skills

Kaggle Linear Models

ASecurity

"Safe, modern Kaggle-style SVM and logistic-regression workflows

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
testingpythongogitapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill kaggle-linear-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kaggle Linear Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kaggle Linear Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-kaggle-linear-models/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-kaggle-linear-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kaggle-linear-models
description: "Safe, modern Kaggle-style SVM and logistic-regression workflows
  for dense matrices, hashed sparse CSVs, and one-hot categorical tables."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Kaggle Linear Models

Use this sub-skill for classical tabular machine-learning tasks that look like Kaggle starter code and should stay bounded, reproducible, and Python 3 friendly.

## Choose a route

- Dense numeric matrix plus class labels: use `scripts/sklearn_svm_submission.py`.
- Criteo-like sparse CSV with `Label` and `Id` columns: use `scripts/hashed_logistic_sgd.py`.
- Categorical table with `ACTION`/`id` columns: use `scripts/categorical_logistic_submission.py`.
- Synthetic smoke fixtures for all helpers: use `scripts/make_tiny_fixtures.py`.

Read `references/workflows.md` for runnable recipes, `references/data-formats.md` when the CSV layout is unclear, `references/api-reference.md` for current scikit-learn usage, and `references/troubleshooting.md` when a run fails.

## What this sub-skill includes

- Dense-matrix SVC submissions with configurable SVC arguments.
- Hashed online logistic regression for Criteo-like sparse categorical CSVs.
- One-hot categorical logistic regression with optional bounded cross-validation.
- Interaction-feature guidance from the expanded Amazon-style logistic example, kept reference-only unless the user explicitly asks for a bounded experiment.

## What stays out

- Admissions logistic regression with statsmodels. That route is owned by `statsmodels-logit-workflow`.
- Live Twitter/X ingestion or JSON streaming. That route is owned by `twitter-json-workflow`.
- Exhaustive greedy feature selection over a large feature lattice.
- Any workflow that depends on the original repository checkout.

If a user asks for one of those excluded routes, point them to the sibling skill that owns that route instead of extending this one.

## Quick selection rules

1. If the input is a dense numeric matrix with a separate label file, start with `sklearn_svm_submission.py`.
2. If the input is a sparse tabular CSV with `Label`/`Id` columns and mixed string or numeric feature values, start with `hashed_logistic_sgd.py`.
3. If the input is a categorical CSV with `ACTION`/`id` columns, start with `categorical_logistic_submission.py`.
4. If you need tiny fixtures to smoke-test the helpers, generate them first with `make_tiny_fixtures.py`.

## Expected behavior

- All bundled scripts accept explicit paths and `--help`.
- The helpers create missing parent directories for outputs.
- The modernized categorical workflow uses `OneHotEncoder(handle_unknown="ignore", sparse_output=True)`.
- The categorical workflow uses bounded `StratifiedKFold` cross-validation only when you request it.
- The interaction-feature recipe is documentation only by default; it should not be promoted into a default script unless the user gives a small dataset and a clear budget.

## When to read each bundled reference

- `references/workflows.md`: end-to-end command recipes and the reference-only interaction-feature pattern.
- `references/data-formats.md`: required columns, label conventions, and output layouts.
- `references/api-reference.md`: current sklearn signatures and API replacements for removed legacy names.
- `references/troubleshooting.md`: old sklearn API errors, unseen categories, single-class folds, large feature spaces, and the broken v2 hashed script.

## When to run each bundled helper

- `scripts/make_tiny_fixtures.py`: create small dense, hashed, and categorical fixtures for smoke tests.
- `scripts/sklearn_svm_submission.py`: fit an SVC on dense numeric matrices and write class predictions.
- `scripts/hashed_logistic_sgd.py`: fit an online hashed logistic model on Criteo-like CSVs and write probabilities.
- `scripts/categorical_logistic_submission.py`: fit a modern sparse one-hot logistic model on categorical CSVs and optionally report bounded CV AUC.

Files in this skill

  • SKILL.md3.9 KB
  • references/api-reference.md3.9 KB
  • references/data-formats.md3.5 KB
  • references/troubleshooting.md5 KB
  • references/workflows.md6.9 KB
  • scripts/categorical_logistic_submission.py5.4 KB
  • scripts/hashed_logistic_sgd.py7.8 KB
  • scripts/make_tiny_fixtures.py5.9 KB
  • scripts/sklearn_svm_submission.py3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.