Skip to content
Back to skills

Single Task Modeling

ASecurity

"Operate DeepCTR-Torch single-output binary classification and

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill single-task-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Single Task Modeling?

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

Security grade badge for Single Task Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-single-task-modeling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-single-task-modeling)

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: single-task-modeling
description: "Operate DeepCTR-Torch single-output binary classification and
  regression model workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Single-task modeling

Use this sub-skill when the user needs a **single-output** DeepCTR-Torch model for binary CTR-style classification or scalar regression.

## Owns

- Model families: `WDL`, `DeepFM`, `xDeepFM`, `AFM`, `AFN`, `AutoInt`, `DCN`, `DCNMix`, `FiBiNET`, `IFM`, `DIFM`, `MLR`, `NFM`, `ONN`, `PNN`, `CCPM`.
- Choosing a single-task model family and constructor shape.
- `compile`, `fit`, `predict`, `evaluate`, metrics, CPU/GPU `device`, callbacks, checkpointing, and save/load for single-task flows.
- Binary-to-regression workflow conversion.
- A self-contained DeepFM binary smoke helper.

## Route away

- Feature-column construction, feature names, dense/sparse/sequence input arrays, and data validation: use [`../feature-column-inputs/SKILL.md`](../feature-column-inputs/SKILL.md).
- DIN/DIEN sequence-interest models: use [`../sequence-and-interest-models/SKILL.md`](../sequence-and-interest-models/SKILL.md).
- SharedBottom, ESMM, MMOE, and PLE multi-task models: use [`../multitask-modeling/SKILL.md`](../multitask-modeling/SKILL.md).

## Operating sequence

1. Confirm the task is `binary` or `regression` and that the target is a single column.
2. Obtain valid feature columns and `model_input` dictionaries from the feature-column skill.
3. Select a model from the catalog; watch constructor exceptions for `PNN` and `MLR`.
4. Compile with one of the supported strings:
   - optimizers: `sgd`, `adam`, `adagrad`, `rmsprop`
   - losses: `binary_crossentropy`, `mse`, `mae`
   - metrics: `binary_crossentropy`, `logloss`, `auc`, `mse`, `accuracy`, `acc`
5. Train with `fit`, generate predictions with `predict`, and use `evaluate` or external sklearn metrics for final reporting.
6. Add `EarlyStopping` or `ModelCheckpoint` only after the monitored metric is present in logs.

## References

- [Model catalog](references/model-catalog.md)
- [Training and prediction workflows](references/training-and-prediction.md)
- [API reference](references/api-reference.md)
- [Troubleshooting](references/troubleshooting.md)

## Bundled helper

- [`scripts/deepfm_binary_smoke.py`](scripts/deepfm_binary_smoke.py): inline tiny DeepFM binary example with `--help`, default one-epoch CPU run, optional CUDA device, prediction shape check, and final LogLoss/AUC reporting.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md9.3 KB
  • references/model-catalog.md6.3 KB
  • references/training-and-prediction.md8.6 KB
  • references/troubleshooting.md7.6 KB
  • scripts/deepfm_binary_smoke.py6.4 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.