Skip to content

Commit

Permalink
Fix a minor bug in AdaptiveThresholdSMC (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpesonen authored Mar 22, 2021
1 parent b1d3fbd commit 20db86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfi/methods/inference/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def _set_adaptive_quantile(self):
max_value = self.densratio.max_ratio()
max_value = 1.0 if max_value < 1.0 else max_value
self._quantiles[self.state['round']+1] = max(1 / max_value, 0.05)
logger.info('ABC-SMC: Estimated maximum density ratio %.5f' % (max_value))
logger.info('ABC-SMC: Estimated maximum density ratio %.5f' % (1 / max_value))

def _resolve_sample(self, backwards_index):
"""Get properties of the samples used in ratio estimation."""
Expand Down

0 comments on commit 20db86b

Please sign in to comment.