Skip to content

Commit f732971

Browse files
Fix abstract class error (#1451)
* Fix * Instead raise error * Value error is better * formatting
1 parent 1ee577e commit f732971

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sbi/inference/potentials/score_fn_iid.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@ class JacCorrectedScoreFn(BaseGaussCorrectedScoreFunction):
647647
in some cases.
648648
"""
649649

650+
def posterior_precision_est_fn(self, conditions: Tensor) -> Tensor:
651+
raise ValueError("This method does not use the posterior precision estimation.")
652+
650653
def marginal_denoising_posterior_precision_est_fn(
651654
self,
652655
time: Tensor,

0 commit comments

Comments
 (0)