executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
model-trainingTrain, resume, tune, inspect, serialize, score, and troubleshoot LightFM recommendation models.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to train or operate a lightfm.LightFM model: choose a loss, fit or resume training, score items, inspect embeddings, serialize the model, tune regularization or schedules, use sample weights, or export representations for nearest-neighbour retrieval.
LightFM(...), fit, fit_partial, predict, predict_rank usage notes, get_user_representations, get_item_representations, sample weights, random_state, num_threads, pickling, sklearn-style parameters, and optional ANN indexing from trained embeddings.../data-features/SKILL.md. This includes Dataset, raw user/item ids, identity features, metadata features, and feature-shape preparation.../evaluation-splitting/SKILL.md. This includes precision_at_k, auc_score, train/test split construction, and evaluation leakage checks. This sub-skill only notes when model APIs feed evaluation.../repo-development/SKILL.md.interactions as a SciPy sparse user-item matrix. Use ../data-features/SKILL.md if raw ids or feature matrices are involved.warp for implicit top-k ranking, often a strong default.bpr for implicit ranking/AUC-style objectives and usually faster epochs than WARP.logistic when interactions include both positive 1 and negative -1 labels.warp-kos for k-order statistic WARP experiments; do not combine it with sample_weight.model.fit(...) for a fresh model or model.fit_partial(...) to resume from current weights.model.predict(user_ids, item_ids, ...); pass repeated user ids when ranking many items for one user.get_item_representations(...) and get_user_representations(...); preserve the same feature schema used at training time.references/workflows.md for concrete snippets and scripts/tiny_lightfm_smoke.py for a no-network smoke run.fit resets existing learned state; fit_partial keeps state and advances training. Use fit_partial for epoch-by-epoch validation, checkpointing, and warm starts.no_components, early stopping, or small item_alpha/user_alpha. If learned weights collapse toward zero, regularization may be too strong.num_threads must be at least 1; keep it no larger than physical cores and use 1 when reproducibility/debugging matters.predict as the correctness fallback.references/api-reference.md: signatures, parameter tables, returns, and gotchas.references/workflows.md: minimal in-memory, implicit, explicit, tuning, resume, representation, ANN, sample-weight, pickling, and sklearn snippets.references/troubleshooting.md: common exceptions, shape mismatches, NaNs/divergence, WARP speed, popularity collapse, threads, CPU-only, and optional ANN imports.scripts/tiny_lightfm_smoke.py: deterministic local smoke script with no downloads.