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
embedding-losses-miningRoutes embedding-network, contrastive-loss, triplet-loss, and online mining tasks for the Siamese-triplet repository.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about the repository's embedding backbone, the siamese and triplet wrappers, the contrastive or triplet losses, or the pair/triplet selection helpers used for online mining.
EmbeddingNetEmbeddingNetL2ClassificationNetSiameseNetTripletNetContrastiveLossTripletLossOnlineContrastiveLossOnlineTripletLossPairSelector and TripletSelector implementationsRead this sub-skill for tasks that mention:
references/api-reference.md for shapes and return values.references/troubleshooting.md if a selector or loss returns empty results.scripts/check_losses_networks.py for a tiny no-download smoke.networks.py, losses.py, utils.py, README loss descriptions, and the notebook training cells.EmbeddingNet and verify that it maps 1×28×28 images to a 2D embedding.ClassificationNet, SiameseNet, or TripletNet depending on the downstream loss.ContrastiveLoss for pairwise same/different supervisionTripletLoss for explicit anchor/positive/negative supervisionOnlineContrastiveLoss or OnlineTripletLoss when mining pairs or triplets inside a mini-batchEmbeddingNetL2 if normalized embeddings are important.ClassificationNet only when the task is ordinary classification rather than metric learning.HardNegativePairSelector when you want the hardest negative pairs from a batch.OnlineTripletLoss returns (loss, num_triplets), which is easy to misuse if a caller expects a plain tensor.EmbeddingNetL2 divides by the norm without an epsilon guard.references/api-reference.md for the module and selector map.references/troubleshooting.md for CPU/GPU and empty-mining issues.../dataset-sampling/SKILL.md if the next step is a wrapper or sampler problem.../training-experiments/SKILL.md if the next step is a fit-loop or notebook workflow check.