We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 314f45e commit 77b4139Copy full SHA for 77b4139
sbi/inference/trainers/base.py
@@ -665,8 +665,13 @@ def _raise_deprecation_warning(
665
666
deprecated_params = deprecated_params.copy()
667
668
- is_default_mcmc_method = kwargs.get("mcmc_method") == "slice_np_vectorized"
669
- is_default_vi_method = kwargs.get("vi_method") == "rKL"
+ is_default_mcmc_method = (
+ kwargs.get("mcmc_method") == "slice_np_vectorized"
670
+ or kwargs.get("mcmc_method") is None
671
+ )
672
+ is_default_vi_method = (
673
+ kwargs.get("vi_method") == "rKL" or kwargs.get("vi_method") is None
674
675
676
if not is_default_mcmc_method:
677
deprecated_params.append("mcmc_method")
0 commit comments