技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-features【数据与研究】Build LightFM Dataset mappings, sparse interactions, weights, user/item feature matrices, built-in data loads, and cold-start feature inputs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to turn external user/item ids, interaction records, sample weights, or user/item metadata into LightFM-ready sparse matrices and mappings.
| Need | Go to |
|---|---|
Build Dataset mappings, interactions, weights, user/item feature matrices, or cold-start feature rows | This sub-skill; start with API reference and data formats. |
| Convert tiny local JSONL records without network access | build_lightfm_dataset.py. |
Choose loss, learning schedule, regularization, epochs, or LightFM.fit strategy | model-training. |
Create train/test splits, compute precision/AUC, or reason about check_intersections | evaluation-splitting. |
| Build, install, Cythonize, or maintain the repository itself | repo-development. |
genre:comedy or country:gb so they cannot collide with raw ids.Dataset(user_identity_features=..., item_identity_features=...). Defaults add one identity feature per known user and item; disable the relevant identity flag for true cold-start generalization from metadata only.fit(users, items, user_features=None, item_features=None) once to create fresh mappings, or fit_partial(...) only when intentionally extending mappings before model training.build_interactions(records) to get (interactions, weights) as aligned COO matrices. Call build_user_features(records) and/or build_item_features(records) when passing explicit feature matrices to LightFM.interactions_shape(), user_features_shape(), item_features_shape(), model_dimensions(), and mapping() before handing matrices to training, prediction, or evaluation.