-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature or idea you want to propose
Paper by some of the original CDW-CE authors:
https://arxiv.org/abs/2412.01246
The formula doesn't make sense to me assuming log(1 − max(1, yˆi + m)) is always undefined
Describe your proposed solution
I'm guessing they mean something like
if self.margin is not None:
probs = F.softmax(y_pred, dim=1)
probs = torch.clamp(probs + self.margin, max=1 - 1e-8)
log_term = torch.log(1 - probs)
loss = log_term * weightsDescribe alternatives you have considered, if relevant
I couldn't find any code implementations for the newer paper
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request