Skip to content

Commit fba2eae

Browse files
committed
Fix misleading shapes in docstring
1 parent 18214da commit fba2eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesflow/amortizers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,12 +1107,12 @@ def sample(self, input_dict, n_samples, to_numpy=True, **kwargs):
11071107
--------
11081108
samples_dict : dict
11091109
A dictionary with keys `global_samples` and `local_samples`
1110-
Global samples will hold an array-like of shape (num_samples, num_replicas, num_local)
1110+
Local samples will hold an array-like of shape (num_replicas, num_samples, num_local)
11111111
and local samples will hold an array-like of shape (num_samples, num_hyper + num_shared),
11121112
if optional shared patameters are present, otherwise (num_samples, num_hyper),
11131113
"""
11141114

1115-
# Returned shapes will be
1115+
# Returned shapes will be :
11161116
# local_summaries.shape = (1, num_groups, summary_dim_local)
11171117
# global_summaries.shape = (1, summary_dim_global)
11181118
local_summaries, global_summaries = self._get_local_global(input_dict, **kwargs)

0 commit comments

Comments
 (0)