阅读 PyTorch 文档 BCEWithLogitsLoss :
where c is the class number (c > 1 for multi-label binary classification, c = 1 for single-label binary classification), nn is the number of the sample in the batch and p_cp c is the weight of the positive answer for the class cc .
什么是多标签二元分类?二进制假设只有两个标签 AFIK
最佳答案
就二元分类而言,多标签意味着对于单个示例,两个类都可以是真实类。
例如,在狗-猫分类器的情况下,对于同时包含狗和猫的图像,它将同时预测狗和猫。
In the multi-label problem there is no constraint on how many of the classes the instance can be assigned to. Wiki
关于deep-learning - 什么是多标签二分类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60756374/