shoelace icon indicating copy to clipboard operation
shoelace copied to clipboard

Question about LogCumsumExp

Open dszhengyu opened this issue 5 years ago • 0 comments

Hi Rolf,

I'm reading your code about ListMLE loss and found that in LogCumsumExp the max is subtracted and added back later, https://github.com/rjagerman/shoelace/blob/39085b9e1e544f4cca40ae7b6e158015b45bc6d1/shoelace/functions/logcumsumexp.py#L19, what is the reason for doing that?

Thx -Yu

dszhengyu avatar Jul 25 '19 08:07 dszhengyu