Skip to content
Back to skills

Sequence And Interest Models

ASecurity

"Use DeepCTR-Torch DIN/DIEN and VarLenSparseFeat sequence workflows

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
code-qualitygoapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill sequence-and-interest-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sequence And Interest Models?

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

Security grade badge for Sequence And Interest Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sequence-and-interest-models/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sequence-and-interest-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: sequence-and-interest-models
description: "Use DeepCTR-Torch DIN/DIEN and VarLenSparseFeat sequence workflows
  for behavior-history CTR inputs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Sequence and interest models

Use this sub-skill for DeepCTR-Torch workflows that model behavior histories or multi-value sequence features, especially `DIN`, `DIEN`, and `VarLenSparseFeat` inputs whose rows contain padded item/category histories.

## Route by task

| User task | Load |
| --- | --- |
| Build or debug a DIN/DIEN behavior-history model | [references/din-dien-workflows.md](references/din-dien-workflows.md) |
| Check sequence array shapes, padding, `length_name`, or masks | [references/sequence-feature-shapes.md](references/sequence-feature-shapes.md) |
| Look up DIN/DIEN, sequence-pooling, attention, or feature-column parameters | [references/api-reference.md](references/api-reference.md) |
| Diagnose behavior-list, embedding, sequence length, negative sampling, hash, or short-sequence failures | [references/troubleshooting.md](references/troubleshooting.md) |
| Run a tiny DIN behavior-history smoke | [scripts/din_sequence_smoke.py](scripts/din_sequence_smoke.py) |
| Run a tiny multi-value `VarLenSparseFeat` smoke | [scripts/varlen_feature_smoke.py](scripts/varlen_feature_smoke.py) |

## Core invariants

1. `history_feature_list`/`behavior_feature_list` contains **target sparse feature names** such as `item_id` and `cate_id`, not history column names.
2. For every behavior feature `x`, provide a target `SparseFeat(name=x, ...)` and a history `VarLenSparseFeat` whose feature name is exactly `hist_` + `x`.
3. Share target/history embeddings with `embedding_name=x` on each history `SparseFeat`; do the same for DIEN negative histories.
4. DIN/DIEN behavior histories should be post-padded to the configured `maxlen` and accompanied by a `length_name` such as `seq_length`.
5. For DIEN with `use_negsampling=True`, add `neg_hist_` + `x` feature columns and model-input arrays for every behavior feature `x`.

## Boundary routing

- For general `SparseFeat`, `DenseFeat`, `VarLenSparseFeat` constructor basics and non-sequence data validation, use `feature-column-inputs`.
- For non-sequence single-output model families such as DeepFM, WDL, DCN, AutoInt, or xDeepFM, use `single-task-modeling`.
- For multi-output MTL classes, use `multitask-modeling`.
- This sub-skill does not cover custom sequence architectures beyond the package's DIN/DIEN and standard pooled `VarLenSparseFeat` workflows.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md6 KB
  • references/din-dien-workflows.md6.5 KB
  • references/sequence-feature-shapes.md5.1 KB
  • references/troubleshooting.md6.3 KB
  • scripts/din_sequence_smoke.py6 KB
  • scripts/varlen_feature_smoke.py5 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.