models.bootstrap_rows()
n row indices drawn from range(n) with replacement on stream
Usage
models.bootstrap_rows(
n,
seed,
stream=0,
)Parameters
n: intseed: intstream: int = 0
Returns
list of int
Examples
>>> from prospicio.models import bootstrap_rows
>>> bootstrap_rows(8, 3)[4, 0, 2, 6, 1, 1, 0, 5]