Should apply dataset.target_transform
tayden opened this issue · comments
Taylor Denouden commented
In the sampler, when getting the labels of the dataset and counting the frequencies of each, the dataset target transform should be applied. Target transforms sometimes change the label (e.g. by grouping multiple of the original classes) and might affect the frequency counts for each label.