Skip to content

Question about code. #8

@Fay-why

Description

@Fay-why

mi_loss = self.bce_loss(logits * mask, labels * mask) * (batch_size * (pos_size + neg_size)) \

hi~ Thanks for your clear codes. I have two questions and hope for you to reply.
1.why Line 58 above multiply the (batch_size * (pos_size + neg_size))?? In your paper, this item didn't show up.
2. I saw a lot of mask in your codes, but I'm not much clear about the meaning of mask.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions