You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pymc_extras/inference/pathfinder/importance_sampling.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ class ImportanceSamplingResult:
20
20
samples: NDArray
21
21
pareto_k: float|None=None
22
22
warnings: list[str] =field(default_factory=list)
23
-
method: str="none"
23
+
method: str="psis"
24
24
25
25
26
26
defimportance_sampling(
@@ -82,7 +82,7 @@ def importance_sampling(
82
82
warnings.append(
83
83
"Importance sampling is disabled. The samples are returned as is which may include samples from failed paths with non-finite logP or logQ values. It is recommended to use importance_sampling='psis' for better stability."
"identity" : Applies log importance weights directly without resampling.
1673
-
None or "none" : No importance sampling weights. Returns raw samples of size (num_paths, num_draws_per_path, N) where N is number of model parameters. Other methods return samples of size (num_draws, N).
1673
+
None : No importance sampling weights. Returns raw samples of size (num_paths, num_draws_per_path, N) where N is number of model parameters. Other methods return samples of size (num_draws, N).
1674
1674
progressbar : bool, optional
1675
1675
Whether to display a progress bar (default is True). Setting this to False will likely reduce the computation time.
0 commit comments