home/categories/framework-internals/ecnu-icalk-autoskill-skillbank-convskill-english-gpt4-8-pytorch-triplet-loss-with-multiple-positives-and-hard-negatives-skill-md
framework-internalsdevelopment

pytorch-triplet-loss-with-multiple-positives-and-hard-negatives

Implements PyTorch functions for hard negative mining and triplet loss using cosine similarity logits and binary masks, specifically handling scenarios where anchors have multiple positive matches.

ECNU-ICALK
maintainer
ECNU-ICALK
更新于 3/16/2026
星标
304
分支
34
quick start

Installation and usage

Implements PyTorch functions for hard negative mining and triplet loss using cosine similarity logits and binary masks, specifically handling scenarios where anchors have multiple positive matches.

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use pytorch-triplet-loss-with-multiple-positives-and-hard-negatives