Multi-Label, Multi-Class class imbalance - PyTorch Forums
https://discuss.pytorch.org/t/multi-label-multi-class-class-imbalance/3757318.02.2019 · Imagine that I have a multi-class, multi-label classification problem; my imbalanced one-hot coded dataset includes 1000 images with 4 labels with the following frequencies: class 0: 600, class 1: 550, class 2: 200, class 3: 100. As I said, the targets are in a one-hot coded structure. For instance, the target [0, 1, 1, 0] means that classes 1 ...
Multi-Label, Multi-Class class imbalance - PyTorch Forums
discuss.pytorch.org › t › multi-label-multi-classFeb 18, 2019 · Hi, I have implemented a network for multi-label, multi-class classification, this has been done using BCEWithLogits outputting to 6 sigmoid units. However, I have a class imbalance and was wondering if there were a way to weight such classes in the multi-label sense. I have labels in the following one-hot encoded format: [0,1,0,1,0,0], refers to class 1 and class 3 are present. The classes ...