Closed wiseodd closed 1 hour ago
I guess one small potential downside is that in this case you can't use call with another link function. Maybe this is even a good thing since using functional_samples is a lot more explicit than yet another argument to call
I agree with your last statement.
I believe the original semantic for __call__
is "making predictions based on the posterior obtained via __fit__
". So, I'd say having an option in __call__
to do an arbitrary expectation is ill-suited. Esp. so since we don't support an arbitrary loss function for computing the Hessian.
@aleximmer could you please double-check and merge?
Closes #241.
Use case: computation of an arbitrary expectation w.r.t. $p(f(x) \mid x, \mathcal{D})$.