界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

sequence-and-interest-models

sequence-and-interest-models

【效率与协作】Use DeepCTR-Torch DIN/DIEN and VarLenSparseFeat sequence workflows for behavior-history CTR inputs.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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 taskLoad
Build or debug a DIN/DIEN behavior-history modelreferences/din-dien-workflows.md
Check sequence array shapes, padding, length_name, or masksreferences/sequence-feature-shapes.md
Look up DIN/DIEN, sequence-pooling, attention, or feature-column parametersreferences/api-reference.md
Diagnose behavior-list, embedding, sequence length, negative sampling, hash, or short-sequence failuresreferences/troubleshooting.md
Run a tiny DIN behavior-history smokescripts/din_sequence_smoke.py
Run a tiny multi-value VarLenSparseFeat smokescripts/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.
我的收藏