Multi-labels

Author: lucamarini22Created Mar 19, 2025Updated Mar 21, 2026

Hello! First of all, thanks for this awesome library.

Is there a way to pass to a loss function a matrix of 0 and 1 (or False and True) of every possible pair instead of passing the class labels?

I'm asking this to manage the case where a sample belongs to multiple classes.

Source: KevinMusgrave/pytorch-metric-learning