torch_adata._tools._idx

Module Contents

Functions

idx(→ numpy.ndarray)

Create a an index, sampling from range(len(dataset)).

Attributes

__module_name__

__doc__

__author__

__email__

torch_adata._tools._idx.__module_name__ = _idx.py
torch_adata._tools._idx.__doc__ = Utility module to generate an index within the bounds of len(dataset)
torch_adata._tools._idx.__author__
torch_adata._tools._idx.__email__
torch_adata._tools._idx.idx(dataset, size: int = None, replace: bool = False) numpy.ndarray

Create a an index, sampling from range(len(dataset)).

dataset

size

type: int

replace

type: bool

idx

type: numpy.ndarray