maho3 / ltu-ili

Robust ML in Astro
https://ltu-ili.readthedocs.io/en/latest/
45 stars 9 forks source link

107 examples break in sbi v022 #108

Closed maho3 closed 11 months ago

maho3 commented 11 months ago

Created a new ili.utils.distributions module which contains backend-agnostic distribution functions. In later iterations, it can be used to merge priors from torch.distributions and pydelfi.

Also updated any example which needs to call BoxUniform, to now call the wrapper in ili.utils

maho3 commented 11 months ago

It turns out that all torch.distributions require Tensor inputs. This is cause for a more general solution, wherein we catch all the arguments of the prior distribution and convert them to Tensors first. Closing this PR and trying again...