Skip to content
Agentmart
Submit a tool

deep-ctr-torch

Use DeepCTR-Torch for PyTorch CTR/recommender feature columns, single-task models, DIN/DIEN sequence models, and multi-task learning workflows.

Skill by VectorSpaceLab

IndexedApache-2.0★ 341
Write a review

Chalk Labs

Need help deploying deep-ctr-torch?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vectorspacelab-deep-ctr-torch

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use DeepCTR-Torch for PyTorch CTR/recommender feature columns, single-task models, DIN/DIEN sequence models, and multi-task learning workflows.

Use cases: ml, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/deep-ctr-torch

What's inside

Skill name
deep-ctr-torch
Description
Use DeepCTR-Torch for PyTorch CTR/recommender feature columns, single-task models, DIN/DIEN sequence models, and multi-task learning workflows.
License
Apache-2.0
Metadata
disco-role: operating
Instructions
60 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (29)

  • SKILL.md
  • repo-provenance.md · references/
  • repo-routing-metadata.json · references/
  • training-api-and-persistence.md · references/
  • troubleshooting.md · references/
  • check_deepctr_torch_env.py · scripts/
  • SKILL.md · sub-skills/feature-column-inputs/
  • data-preprocessing.md · sub-skills/feature-column-inputs/references/
  • feature-columns-and-inputs.md · sub-skills/feature-column-inputs/references/
  • troubleshooting.md · sub-skills/feature-column-inputs/references/
  • validate_feature_input.py · sub-skills/feature-column-inputs/scripts/
  • SKILL.md · sub-skills/multitask-modeling/
  • api-reference.md · sub-skills/multitask-modeling/references/
  • mtl-models-and-training.md · sub-skills/multitask-modeling/references/
  • troubleshooting.md · sub-skills/multitask-modeling/references/
  • mmoe_multitask_smoke.py · sub-skills/multitask-modeling/scripts/
  • SKILL.md · sub-skills/sequence-and-interest-models/
  • api-reference.md · sub-skills/sequence-and-interest-models/references/
  • din-dien-workflows.md · sub-skills/sequence-and-interest-models/references/
  • sequence-feature-shapes.md · sub-skills/sequence-and-interest-models/references/
  • troubleshooting.md · sub-skills/sequence-and-interest-models/references/
  • din_sequence_smoke.py · sub-skills/sequence-and-interest-models/scripts/
  • varlen_feature_smoke.py · sub-skills/sequence-and-interest-models/scripts/
  • SKILL.md · sub-skills/single-task-modeling/
  • api-reference.md · sub-skills/single-task-modeling/references/
  • model-catalog.md · sub-skills/single-task-modeling/references/
  • training-and-prediction.md · sub-skills/single-task-modeling/references/
  • troubleshooting.md · sub-skills/single-task-modeling/references/
  • deepfm_binary_smoke.py · sub-skills/single-task-modeling/scripts/

SKILL.md (first lines)

# DeepCTR-Torch

Use this repo skill when a task names **DeepCTR-Torch**, `deepctr_torch`, `deepctr-torch`, PyTorch CTR prediction, recommender ranking models, `SparseFeat`/`DenseFeat`, DeepFM-style models, DIN/DIEN behavior histories, or SharedBottom/ESMM/MMOE/PLE multi-task CTR workflows.

DeepCTR-Torch is a PyTorch package for deep-learning based CTR and recommender models. It exposes feature-column classes, model constructors, and Keras-like `compile`/`fit`/`predict`/`evaluate` methods.

## Install and import

Prefer an isolated Python environment. Minimal package install:

```bash
python -m pip install -U deepctr-torch
python - <<'PY'
import deepctr_torch
from deepctr_torch.inputs import SparseFeat, DenseFeat, VarLenSparseFeat, get_feature_names
from deepctr_torch.models import DeepFM
print(deepctr_torch.__version__)
PY
```

If `import deepctr_torch` fails with `ModuleNotFoundError: requests`, install `requests` explicitly; the package imports it for a best-effort version check even though the distribution metadata may not declare it.

Run the bundled environment checker when starting from an unfamiliar environment:

```bash
python scripts/check_deepctr_torch_env.py --quick
```

## Route map

| User task | Load |
| --- | --- |
| Build `SparseFeat`, `DenseFeat`, `VarLenSparseFeat`, `feature_names`, or `model_input` dictionaries from tabular data | [feature-column-inputs](sub-skills/feature-column-inputs/SKILL.md) |
| Validate sparse ids, dense vector widths, sequence padding, `length_name`, shared `embedding_name`, or batch sizes | [feature-column-inputs](sub-skills/feature-column-inputs/SKILL.md) |
| Train or predict with DeepFM, WDL, xDeepFM, AFM, AFN, AutoInt, DCN, DCNMix, FiBiNET, IFM, DIFM, MLR, NFM, ONN, PNN, or CCPM | [single-task-modeling](sub-skills/single-task-modeling/SKILL.md) |
| Convert a binary CTR example to regression, choose losses/metrics, use callbacks, save/load weights, or debug single-target training | [single-task-modeling](sub-skills/single-task-modeling/SKILL.md) and [training API](references/training-api-and-persistence.md) |
| Build DIN/DIEN behavior-history models, align `hist_*` features, share embeddings, set `seq_length`, or use DIEN negative sampling | [sequence-and-interest-models](sub-skills/sequence-and-interest-models/SKILL.md) |
| Use pooled multi-value inputs such as genre lists without DIN/DIEN attention | [feature-column-inputs](sub-skills/feature-column-inputs/SKILL.md), then [sequence-and-interest-models](sub-skills/sequence-and-interest-models/SKILL.md) if sequence-specific behavior is needed |
| Train SharedBottom, ESMM, MMOE, or PLE with multiple targets | [multitask-modeling](sub-skills/multitask-modeling/SKILL.md) |
| Troubleshoot install/import, offline version checks, GPU selection, data shapes, callbacks, metrics, or PyTorch compatibility | [troubleshooting](references/troubleshooting.md) |
| Check whether this skill matches a repository checkout or package version | [repo provenance](references/repo-provenance.md) |

## Common operating pattern

1. Build and validate feature columns in `feature-column-inputs`.
2. Choose the model route: single-task, sequence-interest, or multi-task.
3. Compile with supported optimizer/loss/metric strings from [training API](references/training-api-and-persistence.md).
4. Fit on a `model_input` dictionary whose keys exactly match `get_feature_names(...)`.
5. Predict and evaluate by task type; for multi-task outputs, evaluate each prediction column against the matching `task_names` entry.
6. Use bundled smoke scripts from the owning sub-skill to verify installation or reproduce a minimal pattern before scaling to real data.

## Backend notes

DeepCTR-Torch supports CPU workflows and optional PyTorch CUDA devices via `device='cuda:0'` and, for DataParallel, `gpus=[0, 1]`. The generated skill was verified for CPU package inspection and tiny CPU training/prediction smokes. Treat GPU and multi-GPU execution as optional unless a user explicitly requests backend verification.

## Boundaries

This skill teaches package use, not model-quality benchmarking or recommender-system theory. It does not replace feature engineering, data leakage checks, calibration, or production serving validation. It does not cover arbitrary custom multi-task graph architectures beyond the four package classes.

From VectorSpaceLab/AREX-Skill, Apache-2.0.

More from VectorSpaceLab/AREX-Skill

Signals

Stars
341
Forks
26
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)
Last release
Sep 2, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from VectorSpaceLab

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get deep-ctr-torch running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying deep-ctr-torch?

CallGet help
Cite this page

deep-ctr-torch skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-deep-ctr-torch (last updated 2026-10-24)