Skip to content

Hello , Is this package able to train a multi-label dataset with one-hot encoding? #669

Open
@Mahiro2211

Description

@Mahiro2211

It is a great package that improves my efficiency , When I test cifar10, for the one-hot label , I can use

label = torch.argmax(label,dim=1)

to transform one-hot label but When I test it on some one-hot label I can't find a nice method to deal with a multi-label dataset.

at first, I saw this issue it tells me a way to put in multi-label, but I want to further custom it because I need to construct a similarity matrix

label =  torch.matmul(label,label.t())
# For multi-label dataset , if there is one label shared by two samples I mark it as the same

I hope to receive a response from you soon. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions