You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm noticing inconsistent behavior in tfr.keras.losses.PairwiseHingeLoss when using labels with negative values (which are masked) or when using precise masks with default reduction.
Expectation is to have identical loss results when masks (labels with negative values) are used, however, I'm noticing inconsistent values. I think the reason for this is that loss is normalized to the sequence length irrespective of masks.
What makes this even more inconsistent is that when a lambda_weight is set for the loss (for example: tfr.keras.losses.NDCGLambdaWeight()), the results will be consistent.
Issue type
Bug
I'm noticing inconsistent behavior in
tfr.keras.losses.PairwiseHingeLoss
when using labels with negative values (which are masked) or when using precise masks with default reduction.Expectation is to have identical loss results when masks (labels with negative values) are used, however, I'm noticing inconsistent values. I think the reason for this is that loss is normalized to the sequence length irrespective of masks.
What makes this even more inconsistent is that when a
lambda_weight
is set for the loss (for example:tfr.keras.losses.NDCGLambdaWeight()
), the results will be consistent.The text was updated successfully, but these errors were encountered: