-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interchangeability of Callable
and BasePotential
#1223
Comments
Related #1055 |
yes, correct. The reason that the custom For the If a user passes a custom potential, then this is checked for the required args here: sbi/sbi/inference/posteriors/base_posterior.py Lines 57 to 69 in 593e153
and then wrapped as BasePotential here:
sbi/sbi/inference/potentials/base_potential.py Lines 80 to 97 in 593e153
|
Yes, I had to dig a bit as well, but it's tested here: Lines 28 to 37 in 593e153
Here, you can how we define a custom potential, depending on inputs |
I think this can be closed, feel free to reopen if anything is still unclear! |
I think it's a good starting point for refactoring the |
what what have to be done here? Just more docs? |
At the moment, if a user passes a just a |
I have a question regarding the interchangeability of the argument
potential_fn
ofFor the callable case, it must be something like:
in contrast to
BasePotential
, which is aCallable
withtheta
as positional argument andtrack_gradients
as keyword argument, correct? Is this tested somewhere? I only found examples where the argument is of typeBasePotential
.The text was updated successfully, but these errors were encountered: