info-nce-pytorch icon indicating copy to clipboard operation
info-nce-pytorch copied to clipboard

Question about input data

Open irowberryFS opened this issue 10 months ago • 0 comments

I have a quick question. My data is (data1, data2, label), where the label indicates if the pair of data points represent the same thing. 0 being not the same and 1 being the same. My objective is contrastive learning/loss. I take batches of the data, so I may have multiple positive pairs in each batch. What would be the optimal way to use this loss function with this data? Any help would be appreciated. Thanks.

irowberryFS avatar Apr 15 '24 17:04 irowberryFS