evidential-deep-learning icon indicating copy to clipboard operation
evidential-deep-learning copied to clipboard

Add pytorch demo script

Open wanzysky opened this issue 3 years ago • 1 comments

500 iters:

image

1500 iters:

image

wanzysky avatar Apr 15 '21 04:04 wanzysky

Thanks a lot for the implementation. I have noticed a strange behavior of Pytorch: When concatenating the return value of LinearNormalGamma at https://github.com/aamini/evidential-deep-learning/blob/71ebd59ab3a4b66c38d919e8aa9ad3711a416796/torch_hello_world.py#L22 such that:

ret = mu, self.evidence(logv), self.evidence(logalpha) + 1, self.evidence(logbeta)
return torch.cat(ret, dim=-1)

the training does not seem to progress and a constant value is predicted. Is there any reasonable explanation for this?

oiao avatar Dec 29 '22 16:12 oiao