Skip to content

Commit

Permalink
Fixup for excluding NaN in NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Nov 3, 2022
1 parent 8afd2e4 commit ecdfe09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbi/inference/snpe/snpe_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def append_simulations(
current_round = max(self._data_round_index) + 1

if exclude_invalid_x is None:
if current_round > 0:
if current_round == 0:
exclude_invalid_x = True
else:
exclude_invalid_x = False
Expand Down

0 comments on commit ecdfe09

Please sign in to comment.