From 20db86b31ffeb495e320ca9c7bb1d99ca8b6d1ec Mon Sep 17 00:00:00 2001 From: Henri Pesonen Date: Mon, 22 Mar 2021 21:12:22 +0100 Subject: [PATCH] Fix a minor bug in AdaptiveThresholdSMC (#365) --- elfi/methods/inference/samplers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elfi/methods/inference/samplers.py b/elfi/methods/inference/samplers.py index abfc9cee..9ef952e1 100644 --- a/elfi/methods/inference/samplers.py +++ b/elfi/methods/inference/samplers.py @@ -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."""