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

single-task-modeling

single-task-modeling

【效率与协作】Operate DeepCTR-Torch single-output binary classification and regression model workflows.

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

技能说明

GitHub

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

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

Bundled helper

  • 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.
我的收藏