Skip to content

Commit

Permalink
remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelgloeckler authored and michaeldeistler committed Aug 27, 2024
1 parent 41471cb commit cc40464
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions sbi/inference/potentials/score_based_potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,7 @@ def gradient(
raise NotImplementedError(
"Score accumulation for IID data is not yet implemented."
)
if self.prior is None:
raise ValueError(
"Prior must be provided when interpreting the data as IID."
)

if self.iid_method == "iid_bridge":
score = _iid_bridge(
theta=theta,
xos=self.x_o,
time=time,
score_estimator=self.score_estimator,
prior=self.prior,
)
else:
raise NotImplementedError(
f"Method {self.iid_method} not implemented."
)


return score

def get_continuous_normalizing_flow(
Expand Down

0 comments on commit cc40464

Please sign in to comment.