Skip to content

Commit 36d785c

Browse files
committed
update docstrings in single session samplers
1 parent 0f7ac51 commit 36d785c

1 file changed

Lines changed: 5 additions & 24 deletions

File tree

cebra/data/single_session.py

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,6 @@ def get_indices(self) -> BatchIndex:
152152
The negative samples will be sampled from the same distribution as the
153153
reference examples.
154154
155-
Args:
156-
num_samples: The number of samples (batch size) of the returned
157-
:py:class:`cebra.data.datatypes.BatchIndex`.
158-
num_negatives: The number of negative samples. If None, defaults to num_samples.
159-
160155
Returns:
161156
Indices for reference, positive and negatives samples.
162157
"""
@@ -258,10 +253,6 @@ def get_indices(self) -> BatchIndex:
258253
The positive samples will be sampled conditional on the reference
259254
samples according to the specified ``conditional`` distribution.
260255
261-
Args:
262-
num_samples: The number of samples (batch size) of the returned
263-
:py:class:`cebra.data.datatypes.BatchIndex`.
264-
265256
Returns:
266257
Indices for reference, positive and negatives samples.
267258
"""
@@ -320,11 +311,6 @@ def get_indices(self) -> BatchIndex:
320311
:py:class:`ContinuousDataLoader`, or just sampled based on the
321312
conditional variable.
322313
323-
Args:
324-
num_samples: The number of samples (batch size) of the returned
325-
:py:class:`cebra.data.datatypes.BatchIndex`.
326-
num_negatives: The number of negative samples. If None, defaults to num_samples.
327-
328314
Returns:
329315
Indices for reference, positive and negatives samples.
330316
@@ -433,19 +419,14 @@ def get_indices(self) -> BatchIndex:
433419
"""Samples indices for reference, positive and negative examples.
434420
435421
The reference and negative samples will be sampled uniformly from
436-
all available time steps, and a total of ``num_samples + num_negatives`` will be
437-
returned for both.
422+
all available time steps, and a total of ``self.batch_size + self.num_negatives``
423+
will be returned for both.
438424
439-
For the positive samples, ``num_samples`` are sampled according to the
440-
behavior conditional distribution, and another ``num_samples`` are
441-
sampled according to the dime contrastive distribution. The indices
425+
For the positive samples, ``self.batch_size`` samples are sampled according to the
426+
behavior conditional distribution, and another ``self.batch_size`` samples are
427+
sampled according to the time contrastive distribution. The indices
442428
for the positive samples are concatenated across the first dimension.
443429
444-
Args:
445-
num_samples: The number of samples (batch size) of the returned
446-
:py:class:`cebra.data.datatypes.BatchIndex`.
447-
num_negatives: The number of negative samples. If None, defaults to num_samples.
448-
449430
Returns:
450431
Indices for reference, positive and negatives samples.
451432

0 commit comments

Comments
 (0)