deep-learning - 什么是多标签二分类?

标签 deep-learning pytorch loss

阅读 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/

相关文章:

python - .view() 在 PyTorch 中做了什么?

Android:在应用程序中间从 3G 切换到 WIFI = 网络连接丢失

python - PySerial 丢失数据

machine-learning - 使用图属性作为神经网络的输入

python - Pytorch中嵌入层权重的不同初始化方法

machine-learning - 解释 Caffe 模型

python - 如何在 PyTorch 中使用非方形填充进行反卷积网络

machine-learning - Tensorflow和Scikitlearn log_loss函数实现的区别

python - 在 Tensorflow 中微调深度神经网络

machine-learning - 如何在caffe中制作train.txt文件