Need help to understand how to implement mask_exclude_positives? Not sure what to put in ()|()?I tried (np.identity(batch_size) == 1)|(negative_zero_on_duplicate>positive.reshape(batch_size,1)). This resulted loss 0.35 and caused 3 test fail.
The problem is somewhere else in the code. Your implementation of mask_exclude_positives
is fine. I would suggest fastnp instead of np, but it is fine.